Register a till
Any signed in user. Registers a device on a branch and returns its id, or the existing one. Only an admin may name another branch, and a retry returns the same device, not a second row.
POST
/api/v1/sync/devices/registerAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsondevice_idstringbranch_idstringlabelstringResponses
200
The device was already registered
device_idstringrequiredbranch_idstringrequiredlabelstringrequired201
Device registered
device_idstringrequiredbranch_idstringrequiredlabelstringrequired401
Not authenticated
detailstringrequired404
Branch not found
detailstringrequired