Achievements: resetAll
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
認証が必要です
アプリケーションで現在認証されているプレーヤーのすべての実績をリセットします。この方法にアクセスできるのは、アプリのホワイトリストに登録されているテスター アカウントのみです。
リクエスト
HTTP リクエスト
POST https://www.googleapis.com/games/v1management/achievements/reset
承認
このリクエストには、次のスコープによる認証が必要です(認証と承認の詳細をご確認ください)。
範囲 |
https://www.googleapis.com/auth/games |
リクエストの本文
このメソッドでは、リクエストの本文を指定しません。
回答
成功すると、このメソッドは次の構造を持つレスポンスの本文を返します。
{
"kind": "gamesManagement#achievementResetAllResponse",
"results": [
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
]
}
プロパティ名 |
値 |
説明 |
備考 |
kind |
string |
このリソースのタイプを一意に識別します。値は常に固定文字列 gamesManagement#achievementResetAllResponse です。 |
|
results[] |
list |
実績のリセット結果。 |
|
results[].kind |
string |
このリソースのタイプを一意に識別します。値は常に固定文字列 gamesManagement#achievementResetResponse です。 |
|
results[].definitionId |
string |
プレーヤーのステータスが更新された実績の ID。 |
|
results[].updateOccurred |
boolean |
リクエストされた更新が実際に行われたかどうかを示すフラグ。 |
|
results[].currentState |
string |
実績の現在の状態。これは、アチーブメントの初期状態と同じです。 指定できる値は次のとおりです。 - 「
HIDDEN 」- 実績が非表示になっています。 - 「
REVEALED 」 - 実績が公開されます。 - 「
UNLOCKED 」 - 実績がロック解除されています。
|
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Achievements: resetAll\n\n**Requires [authorization](#auth)**\n\nResets all achievements for the currently authenticated player for your application. 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/reset\n```\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#achievementResetAllResponse\",\n \"results\": [\n {\n \"kind\": \"gamesManagement#achievementResetResponse\",\n \"definitionId\": string,\n \"updateOccurred\": boolean,\n \"currentState\": string\n }\n ]\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#achievementResetAllResponse`. | |\n| `results[]` | `list` | The achievement reset results. | |\n| results[].`kind` | `string` | Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetResponse`. | |\n| results[].`definitionId` | `string` | The ID of an achievement for which player state has been updated. | |\n| results[].`updateOccurred` | `boolean` | Flag to indicate if the requested update actually occurred. | |\n| results[].`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. | |"]]