Update Player By Uuid V2
POST/session/v2/session/:session_id/player/:player_uuid
Update data about a specific player in a specific session
Required Permissions:
-
For any player (including themselves) any of:
session:*,session:update-player:any -
For the player themselves :
session:update-player:self
Required Session Permissions: SessionPermissions.session_admin for users that do not have the session:promote:any auth permission
Request
Path Parameters
Possible values: non-empty and <= 128 characters
Query Parameters
Default value: true
- application/json
Body
required
custom_data
object
Custom data for the player
Responses
- 200
- 403
- 404
- 422
Successful Response
Response Headers
ETag
string
Used to identify this version of the content. Provide with a get request to avoid downloading the same data multiple times.
- application/json
- Schema
- Example (from schema)
Schema
Player UUID of the player updated
Possible values: [leader, member, invited, reserved]
What membership state players have in a session
Which team the player joined
custom_data
object
Resulting custom data about the player
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "leader",
"team_id": 0,
"custom_data": {}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Session doesn't exist or Player is not a member of the session. See error code for more info
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}