Achievements: unlock

Unlocks this achievement for the currently authenticated player. Try it now.

Request

HTTP request

POST https://www.googleapis.com/games/v1/achievements/achievementId/unlock

Parameters

Parameter name Value Description
Path parameters
achievementId string The ID of the achievement used by this method.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/games

For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "games#achievementUnlockResponse",
  "newlyUnlocked": boolean
}
Property name Value Description Notes
kind string Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUnlockResponse.
newlyUnlocked boolean Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).

Try it!

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