Achievements: reset
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुमति देना ज़रूरी है
वर्तमान में प्रमाणित प्लेयर के लिए दिए गए आईडी के साथ उपलब्धि को रीसेट करता है. इस तरीके को सिर्फ़ आपके ऐप्लिकेशन के लिए अनुमति पा चुके टेस्टर खातों से ऐक्सेस किया जा सकता है.
अनुरोध
एचटीटीपी अनुरोध
POST https://www.googleapis.com/games/v1management/achievements/achievementId/reset
पैरामीटर
पैरामीटर का नाम |
मान |
ब्यौरा |
पाथ पैरामीटर |
achievementId |
string |
इस तरीके से इस्तेमाल की गई उपलब्धि का आईडी.
|
अनुमति देना
इस अनुरोध के लिए नीचे दिए गए दायरे के साथ अनुमति की ज़रूरत है (पुष्टि करने और अनुमति देने के बारे में ज़्यादा पढ़ें).
दायरा |
https://www.googleapis.com/auth/games |
अनुरोध का मुख्य भाग
इस तरीके के साथ अनुरोध का मुख्य हिस्सा न दें.
जवाब
सही तरीके से काम करने पर, यह तरीका इस स्ट्रक्चर के साथ रिस्पॉन्स का मुख्य हिस्सा दिखाता है:
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
प्रॉपर्टी का नाम |
मान |
ब्यौरा |
नोट |
kind |
string |
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग gamesManagement#achievementResetResponse होती है. |
|
definitionId |
string |
उस उपलब्धि का आईडी जिसके लिए खिलाड़ी की स्थिति अपडेट की गई है. |
|
updateOccurred |
boolean |
यह बताने के लिए फ़्लैग करें कि अनुरोध किया गया अपडेट वाकई में हुआ है या नहीं. |
|
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: 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. | |"]]