Add single token to user

PUT

Adds a single token to a user and overwrites a matching existing token.

Path parameters

user_idstringRequired

The user’s ID. This can be any uniquely identifiable string.

tokenstringRequired

The full token string.

Request

This endpoint expects an object.
provider_keyenumRequired
Allowed values: firebase-fcmapnexpoonesignal
tokenstringOptional

Full body of the token. Must match token in URL.

expiry_datestring or booleanOptional

ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.

propertiesanyOptional

Properties sent to the provider along with the token

deviceobjectOptional

Information about the device the token is associated with.

trackingobjectOptional

Information about the device the token is associated with.