Version 4.0.24.12
Registers a mobile device.
Required fields: [:device_token, :device_type]
Request
POST
/mobile/device
Datatype
Description
Request
body
Expand HTTP Body definition...
body
Writable device parameters.
Expand MobileToken definition...
id
lock
Unique ID.
device_token
Specifies the device token
device_type
Specifies type of device. Valid values are: "android", "ios".
Response
200: Device registered successfully.
Datatype
Description
(object)
id
lock
Unique ID.
device_token
Specifies the device token
device_type
Specifies type of device. Valid values are: "android", "ios".
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
409: Resource Already Exists
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link