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:any
, sanction:report:create:self
, 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:
auth_invalid_key_id
- Invalid Authorization - Invalid Key ID in Access Tokenauth_invalid_version
- Invalid Authorization - versionauth_malformed_access
- Invalid Authorization - malformed access tokenauth_not_jwt
- Invalid Authorizationauth_token_expired
- Token is expiredauth_token_format
- Invalid Authorization - {}auth_token_invalid_claim
- Token contained invalid claim value: {}auth_token_invalid_type
- Invalid Authorization - Invalid Token Typeauth_token_sig_invalid
- Token Signature is invalidauth_token_unknown
- Failed to parse tokeninsufficient_permissions
- Insufficient Permissions
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