Pushtokens: update

Stay organized with collections Save and categorize content based on your preferences.

Registers a push token for the current user and application. Try it now.


HTTP request

PUT https://www.googleapis.com/games/v1/pushtokens


This request requires authorization with the following scope:


For more information, see the authentication and authorization page.

Request body

In the request body, supply data with the following structure:

  "kind": "games#pushToken",
  "id": {
    "kind": "games#pushTokenId",
    "ios": {
      "apns_device_token": bytes,
      "apns_environment": string
  "language": string,
  "clientRevision": string
Property name Value Description Notes
kind string Uniquely identifies the type of this resource. Value is always the fixed string games#pushToken.
id nested object Unique identifier for this push token.
id.kind string Uniquely identifies the type of this resource. Value is always the fixed string games#pushTokenId.
id.ios object A push token ID for iOS devices.
id.ios.apns_device_token bytes Device token supplied by an iOS system call to register for remote notifications. Encode this field as web-safe base64.
id.ios.apns_environment string Indicates whether this token should be used for the production or sandbox APNS server.

Acceptable values are:
language string The preferred language for notifications that are sent using this token.
clientRevision string The revision of the client SDK used by your application, in the same format that's used by revisions.check. Used to send backward compatible messages. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:
  • IOS - Push token is for iOS


If successful, this method returns a Pushtokens resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.