DELETE /auth/user/me/avatar

Removes the profile avatar of the currently authenticated user, reverting to the default avatar.

Responses

  • 204

    Avatar removed successfully

  • 401 application/json

    Unauthorized - Invalid or missing token

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
DELETE /auth/user/me/avatar
curl \
 --request DELETE 'http://localhost:8080/api/auth/user/me/avatar' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}
Response examples (500)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}