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.eyJzdWIiOiIxNjg3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjIyLCJleHAiOjE3NTU4NTgyMjIsImp0aSI6ImY4M2Y2MDU0LWQyZjUtNGFjNi1iMTRlLTBhNjU1ODA0MTlmMCJ9.aoGC7Bjef55wR_5ALd3irn2mgULJNv1UdeXuSPBsNCo
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/"15615fcb837ee4aef265122f17c69aa0"
cache-control: max-age=0, private, must-revalidate
x-request-id: 55df7b64-662d-4146-ad55-85d68f0a151a
x-runtime: 0.014867
content-length: 371

Body

{
  "record": {
    "name": "avatar",
    "record": {
      "id": 1687,
      "email": "melvin.douglas+driver@example.com",
      "phone_number": null,
      "pin": null,
      "pin_sent_at": null,
      "first_name": "Melvin",
      "last_name": "Douglas",
      "created_at": "2025-07-23T10:23:42.573Z",
      "updated_at": "2025-07-23T10:23:42.625Z",
      "role": "driver",
      "unconfirmed_login": null,
      "referral_code": "559015",
      "discarded_at": null,
      "profile_id": null
    }
  }
}