DirectUploads

Delete current user’s avatar

DELETE attachment

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.eyJzdWIiOiIzMDAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzYsImV4cCI6MTc1NTg1ODE3NiwianRpIjoiZDYyYTczZDEtODhmOC00OWIwLWE0NDYtNDcxYzI2MTMzOTI3In0.A62vcJvxvP_Rdm888IagwHWJUHQdFpX00oP6Sg4tSmA
Host: example.org
Cookie: 

Body

{
  "user": {
    "attachment_type": "avatar",
    "id": 300
  }
}

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/"970e6da64bc1e035db42bb54af300ea0"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5a9fa56d-bc15-4233-8add-7c9c52a6a727
x-runtime: 0.016057
content-length: 368

Body

{
  "record": {
    "name": "avatar",
    "record": {
      "id": 300,
      "email": "anibal.beahan+driver@example.com",
      "phone_number": null,
      "pin": null,
      "pin_sent_at": null,
      "first_name": "Anibal",
      "last_name": "Beahan",
      "created_at": "2025-07-23T10:22:56.433Z",
      "updated_at": "2025-07-23T10:22:56.468Z",
      "role": "driver",
      "unconfirmed_login": null,
      "referral_code": "455276",
      "discarded_at": null,
      "profile_id": null
    }
  }
}