Users

Delete current user’s avatar

DELETE avatar

Endpoint

DELETE /api/v1/users/attachment

Parameters

Name Description Enum
user[attachment_type] required Attachment type to remove ["avatar"]

Request

Route

DELETE /api/v1/users/attachment

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjY2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDczLCJleHAiOjE3NjM1NDI0NzMsImp0aSI6IjIyYjg0NWE2LTQ1OWQtNGIwOC05ZmQzLWY0NGE3MGMxNDQ0YiJ9.KYuUk6wVQNMpAtNSYjRVbqWEigSfL-GBskfb5TBfGUM
Host: example.org
Cookie: 

Body

{
  "user": {
    "attachment_type": "avatar"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"ac9239c92429fc4872c3f1bc2264a634"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9109d035-b2f6-4135-85a7-20c26158527c
x-runtime: 0.013300
content-length: 367

Body

{
  "record": {
    "name": "avatar",
    "record": {
      "id": 1666,
      "email": "shirl.wehner+driver@example.com",
      "phone_number": null,
      "pin": null,
      "pin_sent_at": null,
      "first_name": "Shirl",
      "last_name": "Wehner",
      "created_at": "2025-10-20T08:54:33.804Z",
      "updated_at": "2025-10-20T08:54:33.884Z",
      "role": "driver",
      "unconfirmed_login": null,
      "referral_code": "216769",
      "discarded_at": null,
      "profile_id": null
    }
  }
}