Give Player Permission By Uuid
PATCH/session/v1/session/:session_id/player/:player_uuid/permission/:permission
Give a specific player intra-session permissions
For all sessions:
-
Required auth permissions are any of:
session:*,session:give:permission:any -
Required session permissions are None
For sessions you are actively in:
-
Required auth permissions are any of:
session:*,session:give:permission:active -
Required session permissions are
SessionPermissions.active_in_session
For sessions you are an admin in:
- None
Request
Path Parameters
Possible values: [invite, kick, move]
Possible values: non-empty and <= 128 characters
Query Parameters
Default value: true
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
Unique identifier for this player
Possible values: [invite, kick, move]
Default value: ``
List of intra session permissions for a specific player
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"permissions": [
"invite"
]
}
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"
}
]
}