PATCH
/api/users/{user_id}/avatar
curl \
-X PATCH https://lztup.toil.cc/api/users/{user_id}/avatar \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"avatar":"string"}'
Request example
{
"avatar": "string"
}
Request examples
{
"avatar": "string"
}
Response examples (200)
{
"avatar": "string"
}
Response examples (503)
{
"detail": "Can't connect to MySQL server on '[SERVER]'"
}
Response examples (400)
{
"detail": "Duplicate entry '...' for key '...'"
}
Response examples (401)
{
"detail": "Couldn't validate credentials"
}
Response examples (403)
{
"detail": "Not authenticated"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}