Avatars
Upload avatar asset file
Upload the asset file for an avatar.
AuthorizationBearer <token>
Bearer token authentication for user sessions
In: header
Path Parameters
avatar_idinteger
asset_idinteger
Header Parameters
x-file-hash?string
SHA256 hash of the file for verification
file?file
Format
binaryResponse Body
application/json
application/json
curl -X POST "https://nox.hactazia.fr/api/avatars/0/assets/0/file"{
"success": true
}{
"error": {
"message": "You are not logged in.",
"code": 7,
"status": 401
},
"data": null
}