Scores: resetMultipleForAllPlayers
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נדרשת הרשאה
איפוס הניקוד של לוחות הלידרבורד עם המזהים שניתנו לכל השחקנים. השיטה הזו זמינה רק לחשבונות משתמשים ב-Developer Console. ניתן לאפס רק לוחות לידרבורד במצב טיוטה.
בקשה
בקשת HTTP
POST https://www.googleapis.com/games/v1management/scores/resetMultipleForAllPlayers
אישור
הבקשה הזו מחייבת הרשאה עם ההיקף הבא (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/games |
גוף הבקשה
בגוף הבקשה, מספקים את הנתונים במבנה הבא:
{
"kind": "gamesManagement#scoresResetMultipleForAllRequest",
"leaderboard_ids": [
string
]
}
שם הנכס |
ערך |
תיאור |
הערות |
kind |
string |
מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesManagement#scoresResetMultipleForAllRequest . |
|
leaderboard_ids[] |
list |
המזהים של לוחות הלידרבורד שיש לאפס. |
|
תשובה
אם הפעולה בוצעה ללא שגיאות, השיטה הזו תחזיר גוף תגובה ריק.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Scores: resetMultipleForAllPlayers\n\n**Requires [authorization](#auth)**\n\nResets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/games/v1management/scores/resetMultipleForAllPlayers\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\nIn the request body, supply data with the following structure:\n\n```scdoc\n{\n \"kind\": \"gamesManagement#scoresResetMultipleForAllRequest\",\n \"leaderboard_ids\": [\n string\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#scoresResetMultipleForAllRequest`. | |\n| `leaderboard_ids[]` | `list` | The IDs of leaderboards to reset. | |\n\nResponse\n--------\n\nIf successful, this method returns an empty response body."]]