Create Instance Request
POST/session/v1/session/:session_id/instance
Request an instance be spawned for the session, or register self as a host of the instance
Required Permissions:
- For any player (including themselves) any of:
session:*,session:update:any,session:update:self
Required Session Permissions: SessionPermissions.session_admin if user does not have the session:update:any auth permission
Request
Path Parameters
Possible values: non-empty and <= 128 characters
- application/json
Body
required
Possible values: non-empty and <= 128 characters
Unique ID for the instance, a new one will be generated if not provided
instance_startup_params
object
Parameters given to an instance to change what map and mode it loads, and other gameplay behavior
Name of the map for the instance to spawn with
Game mode for the instance to spawn in
Additional commandline parameters for the instance
custom_data
object
Custom data to pass through to the instance
Possible values: [dedicated, player, preallocated]
Whether the host is another player, or a dedicated instance
Which instance request template should be used to request this instance. Takes priority over instance_startup_params and host_type
Player UUID of the host, if the host type is player
custom_data
object
instance-defined custom data
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: non-empty and <= 128 characters
Allocation ID for instance that's been spun up
Possible values: non-empty and <= 128 characters
Unique ID for the host/session relationship
Possible values: [dedicated, player, preallocated]
Whether the host is another player, or a dedicated instance
Player ID of the host, if the host type is player
Player UUID of the host, if the host type is player
Unique ID for the process that is running this instance
Unique ID for the machine running the instance
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
instance_startup_params
object
Parameters given to an instance to change what map and mode it loads, and other gameplay behavior
Name of the map for the instance to spawn with
Game mode for the instance to spawn in
Additional commandline parameters for the instance
custom_data
object
Custom data to pass through to the instance
Product Client Version number. Used for compatibility checking with players
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
custom_data
object
instance-defined custom data
Possible values: [healthy, unhealthy, degraded, unknown]
An enumeration.
Possible values: non-empty and <= 128 characters
The profile id that this instance was spawned from
The match ID associated with this instance
{
"allocation_id": "string",
"instance_id": "string",
"host_type": "dedicated",
"host_player_id": 0,
"host_player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"host_dedicated_process_id": "string",
"host_dedicated_server_id": "string",
"join_status": "requested",
"join_params": {
"public_conn_str": "string",
"private_conn_str": "string",
"custom_data": {}
},
"instance_startup_params": {
"map": "string",
"mode": "string",
"misc_params": "string",
"custom_data": {}
},
"version": "21.3.15-beta+12345",
"created": "2024-07-29T15:51:28.071Z",
"custom_data": {},
"instance_health": "healthy",
"match_making_profile_id": "string",
"match_id": "string"
}
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"
}
]
}