Devices

V1

This representation is not yet finalized and is subject to change.

The Devices endpoints provide access to individual mobile device settings including associated mobile application and whether Push notifications is activated.


Endpoints

Verb Endpoint Description
PUT /v1/devices/{deviceApplicationToken} Update a device.

Device


Device Properties

Name Description
token Device's unique identifier
category Returns the device category
  • Tablet
  • Mobile Phone
ostype Returns the internal device type
  • iOS
  • Android
  • Windows
application Returns the associated application name
  • AMC Theatres
  • Wallet
  • Google Wallet
isPushEnabled Returns whether the device's Push notifications are enabled for the application


Device Links

Relation Description Methods Templated
self The current device GET, DELETE No

Examples

Update a device.
PUT  /v1/devices/{deviceApplicationToken}

Request

{
  "osType": "android",
  "accountId": 1617,
  "category": "Phone",
  "application": "AMC Theatres",
  "isPushEnabled": "false",
  "osVersion": "6.0",
  "registrations": {
    "add": [
      {
        "pushRegistrationToken": "dMmyheyh5MQ:APA91bGSrm6joDH3b85PIg_R81IsFKkx_izw8NMMOcgebjw",
        "registrationType": "com.amctheatres.droid.cotest"
      }
    ],
    "remove": [
      {
        "pushRegistrationToken": "absdolsdnl:APA91bGSrm6joDH3b85PIg_R81IsFKkx_3483943jkmfdkflp",
        "registrationType": "com.amctheatres.droid.cotest"
      }
    ]
  }
}

Response

HTTP/1.1 200 OK