Create Report For Target Player Uuid
POST/sanctions/v2/player/:player_uuid/reports
Create a new report for a target player
Required Permissions:
If source_player_uuid is not provided, or is the same as the active player: any of: sanction:report:create:self, sanction:report:create:any, sanction:*
Otherwise: any of: sanction:report:create:any, sanction:*
Request
Path Parameters
- application/json
Body
required
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
source_player_uuid
object
The player UUID of the source player. May be missing depending on permissions
anyOf
string
Possible values: [cheating, hate_speech, harassment, real_life_threat, teaming, intentional_feeding, stream_sniping, afk, didnt_play_assigned_role, other]
Reason a player is submitting the report.
description
object
The description of the report
anyOf
string
Possible values: non-empty and <= 4096 characters
session_id
object
The session ID of the report
anyOf
string
instance_id
object
The instance ID of the report
anyOf
string
match_id
object
The match ID of the report
anyOf
string
match_segment
object
The match segment of the report
anyOf
string
custom_data
object
Custom data for the report
Responses
- 200
- 400
- 403
- 404
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
Unique ID for the player report
source_player_uuid
object
The player UUID of the source player. May be missing depending on permissions
anyOf
string
source_player_id
object
deprecated
DEPRECATED: Use source_player_uuid instead. The player ID of the source player
anyOf
integer
target_player_uuid
object
required
The player UUID of the target player. May be missing depending on permissions
anyOf
string
target_player_id
object
deprecated
DEPRECATED: Use target_player_uuid instead. The player ID of the target player
anyOf
integer
Possible values: [cheating, hate_speech, harassment, real_life_threat, teaming, intentional_feeding, stream_sniping, afk, didnt_play_assigned_role, other]
Reason a player is submitting the report.
description
object
The description of the report
anyOf
string
Possible values: non-empty and <= 4096 characters
session_id
object
The session ID of the report
anyOf
string
instance_id
object
The instance ID of the report
anyOf
string
match_id
object
The match ID of the report
anyOf
string
match_segment
object
The match segment of the report
anyOf
string
custom_data
object
Custom data for the report
created
object
The date and time the report was created
anyOf
string
modified
object
The date and time the report was last modified
anyOf
string
{
"report_id": "string",
"source_player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"target_player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "cheating",
"description": "string",
"session_id": "string",
"instance_id": "string",
"match_id": "string",
"match_segment": "string",
"custom_data": {},
"created": "2024-07-29T15:51:28.071Z",
"modified": "2024-07-29T15:51:28.071Z"
}
Error Codes:
-
source_player_required- Source Player must be provided in request or with a user token
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Error Codes:
-
player_not_found- Player {id} not found
- 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"
}
]
}