Create Session Audit
POST/session/v1/audit
Create an audit event in the log for this session. Internal session operations will create new events that are accessible from the get request.
Player clients and instances are expected to create events here when something occurs on their clients that is relevant. Customer created events will be prepended with 'customer.'
Required Permissions:
- For any player (including themselves) any of:
session-audit:update:all,session:*
Required Permissions:
- For any player (including themselves) any of:
session-audit:update:self,session:*
for sessions you are a member of
Required Permissions:
- For any player (including themselves) any of:
session-player-audit:update:all,session:*
to read audit information about any player
Required Permissions:
- For any player (including themselves) any of:
session-player-audit:update:self,session:*
to read audit information about yourself
Request
- application/json
Body
required
Array [
]
Possible values: non-empty and <= 128 characters
Name of the audit event you are creating. Customer created events will be prepended with 'customer.'
Possible values: non-empty and <= 128 characters
ID of the session this event occurred in
Reason for this event to occur
custom_data
object
Custom data for this audit request
Type of the session this event occurred in
Possible values: non-empty and <= 128 characters
Region ID for this event
Whether or not the session is publicly joinable
updated_teams
object[]
Possible values: <= 50
Updated team numbers and sizes
Possible values: >= 1 and <= 100
Maximum number of players for this team
custom_data
object
Custom data about this team
Possible values: [BACKFILL, MATCHMAKING, PLAYER]
An enumeration.
UUID of a specific player being effected in this event
ID of the team being effected in this event
Possible values: non-empty and <= 128 characters
ID of the session being invited in this event
Possible values: non-empty and <= 128 characters
ID of the session being removed in this event
Version updated in this event
client_settings
object
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
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.)
Possible values: [leader, member, invited, reserved]
What membership state players have in a session
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
An enumeration.
Possible values: non-empty and <= 4096 characters
ID of the platform session being effected in this event
Possible values: non-empty and <= 128 characters
ID of the instance being effected in this event
Possible values: [dedicated, player, preallocated]
Whether the host is another player, or a dedicated instance
UUID of the player hosting during this event
ID of the instance request template being used in this event
Map being used in this event
Mode being used in this event
Possible values: non-empty and <= 128 characters
Allocation ID of instance in this event
Possible values: [requested, allocated, pending, joinable, unjoinable, closed]
What state the instance is currently in
join_params
object
Parameters provided by the allocation system or an instance on how to connect
Public connection string for instance
Private connection string for instance
custom_data
object
Custom data to join a instance
Possible values: [healthy, unhealthy, degraded, unknown]
An enumeration.
Possible values: non-empty and <= 128 characters
ID for the queue in this event
Matchmaking ticket id in this event
additional_params
object
Additional parameters to apply to a matchmaking ticket
double_args
object
Additional double arguments to add to the matchmaking ticket
string_args
object
Additional string arguments to add to the matchmaking ticket
Possible values: non-empty and <= 4096 characters
Default value: ``
Additional tags to add to the matchmaking ticket
extensions
object
Additional extensions to add to the matchmaking ticket. Value is a base64 string representation of the protobuf binary data. The data will be converted back to binary before being put on the ticket
Map preferences in this event
Possible values: non-empty and <= 128 characters
ID of the session that was/is in a matchmaking queue for this event
Possible values: non-empty and <= 128 characters
ID of a match that was associated with this session
List of players uuids that were effected in this event. Each player will get a unique event
Responses
- 200
- 403
- 404
- 422
Successful Response
- application/json
- Schema
Schema
any
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Session doesn't exist. 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"
}
]
}