UpdateUserAvatar
PATCH
header
X-API-Key<token>API key for protected endpoints, supplied in the X-API-Key header.
Request Body
requiredapplication/json{
"$ref": "#/components/schemas/auth.v1.UpdateUserAvatarRequest",
"$ref-value": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"title": "user_id"
},
"image_id": {
"type": "string",
"examples": [
"XyZ9aB8cD1"
],
"title": "image_id",
"description": "Trimmed before validation. Empty clears the avatar; otherwise must be a valid base62 image ID."
}
},
"title": "UpdateUserAvatarRequest",
"additionalProperties": false
}
}Response Body
200application/json
Success
type: unknown
{
"$ref": "#/components/schemas/auth.v1.UpdateUserAvatarResponse",
"$ref-value": {
"type": "object",
"properties": {
"image_id": {
"type": "string",
"title": "image_id"
}
},
"title": "UpdateUserAvatarResponse",
"additionalProperties": false
}
}default
curl -X PATCH 'https://api.rixl.com/auth/v1/users/current/avatar'Success
application/json
{
"$ref": "#/components/schemas/auth.v1.UpdateUserAvatarResponse",
"$ref-value": {
"type": "object",
"properties": {
"image_id": {
"type": "string",
"title": "image_id"
}
},
"title": "UpdateUserAvatarResponse",
"additionalProperties": false
}
}