DELETE /api/users/{user_id}/avatar

Path parameters

  • user_id integer Required

    Minimum value is 0, maximum value is 2147483647.

Responses

  • 200 application/json

    Successful Response

    Hide response attribute Show response attribute object
    • avatar string | null Required
  • 503 application/json

    Database connection error

    Hide response attribute Show response attribute object
    • detail string

      Default value is Can't connect to MySQL server on '[SERVER]'.

  • 401 application/json

    Invalid access token

    Hide response attribute Show response attribute object
    • detail string

      Default value is Couldn't validate credentials.

  • 403 application/json

    Access token not entered

    Hide response attribute Show response attribute object
    • detail string

      Default value is Not authenticated.

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
DELETE /api/users/{user_id}/avatar
curl \
 -X DELETE https://lztup.toil.cc/api/users/{user_id}/avatar \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "avatar": "string"
}
Response examples (503)
{
  "detail": "Can't connect to MySQL server on '[SERVER]'"
}
Response examples (401)
{
  "detail": "Couldn't validate credentials"
}
Response examples (403)
{
  "detail": "Not authenticated"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}