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.eyJzdWIiOiIzMTAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjcsImV4cCI6MTc2NjIxODM2NywianRpIjoiYzhmYzRhYzEtYzlmZi00ZDQ0LTkyZjEtMGQzZjQzYmI3NjY3In0.HmUcp-xukhzhcVAFEsZy_Q0tdpX3iZqflk6MXdYSDXE
Host: example.org
Cookie: 

Body

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

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/"e6fa6d8a0aee928f126ed2b2cb76f9a1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3b4c7c7b-0658-4f71-87e4-b91c32365bcb
x-runtime: 0.012365
content-length: 400

Body

{
  "record": {
    "name": "avatar",
    "record": {
      "id": 310,
      "email": "bethann.krajcik+driver@example.com",
      "phone_number": null,
      "pin": null,
      "pin_sent_at": null,
      "first_name": "Bethann",
      "last_name": "Krajcik",
      "created_at": "2025-11-20T08:12:47.927Z",
      "updated_at": "2025-11-20T08:12:47.948Z",
      "role": "driver",
      "unconfirmed_login": null,
      "referral_code": "635812",
      "discarded_at": null,
      "profile_id": null,
      "financial_company_id": null
    }
  }
}