Get Player Sessions
GET/session/v1/player/id/:player_id/session
Get all session IDs associated with a player. NOTE This list is eventually consistent with the data from the session by ID endpoints.
Required Permissions:
-
For any player (including themselves) any of:
session:*,session:read-player:any -
For the player themselves :
session:read-player:self
Required Session Permissions: None
DEPRECATED - Use player endpoint instead
Request
Path Parameters
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
sessions
object
Session associated with this player, and any pending invites
property name*
PlayerSession
Information about the sessions of a specific type that a player is currently a member of, or invited to
template type
Possible values: non-empty and <= 128 characters
Default value: ``
Sessions the player is currently a part of for this session type, if any.
pending_invites
object
Pending invites, if any, for the current player in this session type
property name*
PlayerSessionInvite
Information about an invite to a session that a player received
Possible values: non-empty and <= 128 characters
Session ID for the invite
Player who sent the invite
Possible values: non-empty and <= 128 characters
Default value: ``
Sessions that the player has a reserved place in, but has not yet been invited
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
{
"sessions": {},
"last_updated_timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- 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"
}
]
}