Modify a Game Center Detail Player
Block or unblock a player for a game.
URL
PATCH https://api.appstoreconnect.apple.com/v1/gameCenterDetailPlayers/{id}Path Parameters
| Name | Type | Description |
|---|---|---|
id Required | string | The player’s game-scoped ID. Obtain it from the List Blocked Players response or the List Score Moderations for a Leaderboard response. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | GameCenterDetailPlayerResponse | The request completed successfully. |
| 400 | Bad Request Content-Type: application/json | ErrorResponse | An error occurred with your request. |
| 401 | Unauthorized Content-Type: application/json | ErrorResponse | |
| 403 | Forbidden Content-Type: application/json | ErrorResponse | |
| 404 | Not Found Content-Type: application/json | ErrorResponse | Resource not found. |
| 409 | Conflict Content-Type: application/json | ErrorResponse | The provided resource data is not valid. |
| 422 | Content-Type: application/json | ErrorResponse | |
| 429 | Content-Type: application/json | ErrorResponse |
Mentioned in
Overview
Blocking a player prevents that player from playing the game. The response contains the updated GameCenterDetailPlayer in a GameCenterDetailPlayerResponse.
HTTP Body
The request body you use to modify a Game Center detail player. See GameCenterDetailPlayerUpdateRequest.