Skip to main content
POST
Upload player avatar

Authorizations

Authorization
string
header
required

Bearer token issued by Softmax

Path Parameters

player_id
string
required

Player whose avatar will be updated.

Pattern: ^ply_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Body

multipart/form-data
file
file
required

JPEG, PNG, WebP, or GIF image up to 5 MB.

Response

Successful Response

avatar_url
string | null
required

URL for the player's avatar, or null if none is set.