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 |
Version: HTTP/1.0 Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo3OSwiZXhwIjoxNzU0NTk2NDc5LCJpYXQiOjE3NTQ1OTYyOTl9.bSgx7QetzMqJljg777wPGoQXwxVi0PieCSR8jWJsr4M Host: example.org Cookie:
PUT /apis/v4/push_notification_device_tokens/6
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.eyJ1c2VyX2lkIjo3OSwiZXhwIjoxNzU0NzY5MDk5LCJpYXQiOjE3NTQ1OTYyOTl9.ueItwnYtPkY8kdHSdcbTod8feD_yK8nQp_9fSpNxBRY Access-Control-Expose-Headers: X-MH-Session ETag: W/"e527e62f994c26295ade1a08b1dd2d87" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 2ad5ecab-e438-4327-a949-817f365626e5 X-Runtime: 0.021787 Content-Length: 683
200