Delete current user’s avatar
Users
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.eyJzdWIiOiIxNjgwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM1LCJleHAiOjE3NTExMDg1MzUsImp0aSI6IjFlMGM3YjZmLTBlNjctNGJlZi04NTc2LWU2MWFmZTJlOTZiMiJ9.fo0mQqsParMnltsgPyBh0Qv51aaE1sxotBY3mpafjw0
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/"4f92edd254f84ffa1754dc62298d24fe"
cache-control: max-age=0, private, must-revalidate
x-request-id: 783293a0-03d6-4b98-b5fa-d35dd5e7d356
x-runtime: 0.013740
content-length: 377
Body
{
"record": {
"name": "avatar",
"record": {
"id": 1680,
"email": "despina.lueilwitz+driver@example.com",
"phone_number": null,
"pin": null,
"pin_sent_at": null,
"first_name": "Despina",
"last_name": "Lueilwitz",
"created_at": "2025-05-29T11:02:15.732Z",
"updated_at": "2025-05-29T11:02:15.813Z",
"role": "driver",
"unconfirmed_login": null,
"referral_code": "120711",
"discarded_at": null,
"profile_id": null
}
}
}