Create Report For Target Player Uuid
POST /sanctions/v2/player/{player_uuid}/reports
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:*
Authorizations
Parameters
Path Parameters
player_uuid
required
string format: uuid
Request Body required
object
reason
required
The reason for the report
string
custom_data
Custom data for the report
object
key
additional properties
string
Responses
200
Successful Response
object
report_id
required
Unique ID for the player report
string
reason
required
The reason for the report
string
custom_data
Custom data for the report
object
key
additional properties
string
400
Error Codes:
- source_player_required - Source Player must be provided in request or with a user token
object
auth_success
boolean
error_code
required
string
desc
required
string
403
Error Codes:
- insufficient_permissions - Insufficient Permissions
- auth_malformed_access - Invalid Authorization - malformed access token
- auth_invalid_key_id - Invalid Authorization - Invalid Key ID in Access Token
- auth_token_format - Invalid Authorization - {}
- auth_not_jwt - Invalid Authorization
- auth_invalid_version - Invalid Authorization - version
- auth_token_expired - Token is expired
- auth_token_sig_invalid - Token Signature is invalid
- auth_token_unknown - Failed to parse token
- auth_token_invalid_claim - Token contained invalid claim value: {}
object
auth_success
boolean
error_code
required
string
desc
required
string
404
Error Codes:
- player_not_found - Player {id} not found
object
auth_success
boolean
error_code
required
string
desc
required
string
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string