Join Session By Id Self
POST/session/v1/session/:session_id/player/me
Join a session with currently authed player
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
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
Semver for updated client
client_settings
object
required
A player's platform and input settings
Possible values: [2, 4, 5, 9, 10, 11, 13, 16, 22, 24, 26, 28]
DEPRECATED. Use 'platform' instead. Id for which platform this client is on. ID will be ignored if 'platform' is given. At least one of the two is required
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
Which platform this client is on. If one is not provided, will get the platform from the 'platform_id'. Platform is now read from client's authorization claims if available
Possible values: [keyboardandmouse, gamepad, touch]
Which input type this client is using
Possible values: [pc, xbox_series, xbox_one, web]
Platform verified device type for this client
Which team the player is one
crossplay_preferences
object
A session's or player's preferences around crossplay platforms and inputs. Permitted platforms and inputs will be checked when new players attempt to join a session
Possible values: [desired_platforms_any, desired_platforms_xboxlike, desired_platforms_playstationlike]
The platform type that the client is allowed to play with (any, xbox-like only, playstation-like only etc.)
Possible values: [desired_inputs_any, desired_inputs_keyboardandmouse, desired_inputs_gamepad, desired_inputs_touch]
The input type that the client is allowed to play with (keyboard and mouse, gamepad, touch input etc.)
custom_data
object
player-defined custom data
Possible values: non-empty and <= 128 characters
Password to join a password protected session that you are not invited to
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"
}
]
}