ProMobile - Register mobile device
API Url
Used for registering a mobile device using the hardware id and model to ProMark Push Notification system.
PUT
http://localhost:16010/ProMarkREST/rest/General/devices
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| devices | Object[] | The collection of devices. |
| hardwareId | String | Hardware id of the device. |
| platform | String | Device platform (ios, android). |
| pushToken | String | Token used to push. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
HTTP/1.1 422 Unprocessable Entity{"response": {"errorCode": 1,"errorMessage": "Cannot register device with the notification service"}}