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

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    devicesObject[]

The collection of devices.

      hardwareIdString

Hardware id of the device.

      platformString

Device platform (ios, android).

      pushTokenString

Token used to push.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 422 Unprocessable Entity
{
"response": {
"errorCode": 1,
"errorMessage": "Cannot register device with the notification service"
}
}