Update Session Player By Uuid
POST/session/v1/session/:session_id/player/uuid/:player_uuid
Add or invite a player to the session, or change the status of a player already in the session
To promote players Required Permissions:
- For any player (including themselves) any of:
session:*,session:promote:any,session:promote:self
To invite players Required Permissions:
-
For any player (including themselves) any of:
session:*,session:update-player:any -
For the player themselves :
session:update-player:selfRequired Session Permissions:invitefor users that do not have the above permissions, and are not a session admin
To move players Required Permissions:
-
For any player (including themselves) any of:
session:*,session:update-player:any -
For the player themselves :
session:update-player:selfRequired Session Permissions:movefor users that do not have the above permissions, and are not a session admin
For all else 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: None if session is publicly joinable or the player has been invited.
SessionPermissions.session_admin for other operations
DEPRECATED - Use player/{player_uuid} endpoint instead
Request
Path Parameters
Possible values: non-empty and <= 128 characters
- application/json
Body
required
Possible values: [leader, member, invited, reserved]
What membership state players have in a session
Which team the player should be on
custom_data
object
player-defined custom data
Possible values: [fail, allow_overflow, partial_with_overflow, partial_without_overflow, overfill]
How too many players being invited to a single team should be handled
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"
}
]
}