Apis::V4::PushNotification::DeviceToken API

update an existing push notification device token

Parameters

Name Description type
access_token JSON Web Token retrieved from the Sessions endpoint (you can also pass this into the Authorization header)
data primary JSON API payload
data[attributes][token] Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM, the device token equivalent is called the registration ID. String
data[attributes][platform] The platform of the device indicates which notification service should be used. Accepted values are APNS_SANDBOX and GCM String

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NywiZXhwIjoxNzA0NDczMjI1LCJpYXQiOjE3MDQ0NzMwNDV9.ujqWZo67dCUexoU_c9wUiic_nTxuWkqBDWVzb_9Yy4E
Host: example.org
Cookie: 

Route

PUT /apis/v4/push_notification_device_tokens/3

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
X-MH-Session: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NywiZXhwIjoxNzA0NjQ1ODQ1LCJpYXQiOjE3MDQ0NzMwNDV9.iPtxQYt0qKZ8m-cQuDgoBidJFWPfMvbluj7gPChjyM0
Access-Control-Expose-Headers: X-MH-Session
ETag: W/"660655098e3ee5275f051d03f5b07ceb"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 1e02dd34-71f5-4b08-b90a-85e42dd5400b
X-Runtime: 0.036672
Content-Length: 683

Status

200

Body