Achievements: reset
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
需要授权
为当前已通过身份验证的玩家重置具有指定 ID 的成就。只有已列入应用白名单的测试人员账号才能使用此方法。
请求
HTTP 请求
POST https://www.googleapis.com/games/v1management/achievements/achievementId/reset
参数
参数名称 |
值 |
说明 |
路径参数 |
achievementId |
string |
此方法使用的成就的 ID。
|
授权
此请求需要获得以下范围的授权(详细了解身份验证和授权)。
范围 |
https://www.googleapis.com/auth/games |
请求正文
使用此方法时请勿提供请求正文。
响应
如果成功,此方法将返回以下结构的响应正文:
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
属性名称 |
值 |
说明 |
备注 |
kind |
string |
唯一标识此资源的类型。值始终为固定字符串 gamesManagement#achievementResetResponse 。 |
|
definitionId |
string |
玩家状态已更新的成就的 ID。 |
|
updateOccurred |
boolean |
用于指示请求的更新是否实际发生的标志。 |
|
currentState |
string |
成就的当前状态。这与成就的初始状态相同。 可能的值包括: - “
HIDDEN ”- 成就已隐藏。 - “
REVEALED ”- 显示成就。 - “
UNLOCKED ”- 已解锁成就。
|
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Achievements: reset\n\n**Requires [authorization](#auth)**\n\nResets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/games/v1management/achievements/achievementId/reset\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|-----------------|----------|------------------------------------------------|\n| **Path parameters** |||\n| `achievementId` | `string` | The ID of the achievement used by this method. |\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/accounts/docs/OAuth2)).\n\n| Scope |\n|-----------------------------------------|\n| `https://www.googleapis.com/auth/games` |\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"kind\": \"gamesManagement#achievementResetResponse\",\n \"definitionId\": string,\n \"updateOccurred\": boolean,\n \"currentState\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetResponse`. | |\n| `definitionId` | `string` | The ID of an achievement for which player state has been updated. | |\n| `updateOccurred` | `boolean` | Flag to indicate if the requested update actually occurred. | |\n| `currentState` | `string` | The current state of the achievement. This is the same as the initial state of the achievement. Possible values are: - \"`HIDDEN`\"- Achievement is hidden. - \"`REVEALED`\" - Achievement is revealed. - \"`UNLOCKED`\" - Achievement is unlocked. | |"]]