Delete current driver’s document
Users > Profile
DELETE document
Endpoint
DELETE /api/v1/users/profile/attachment
Parameters
Name | Description | Enum |
---|---|---|
profile[attachment_type] required | Attachment type to remove | ["cv", "dbs", "tacho", "enchanced_dbs", "cpc", "medical_check", "child_safeguard_training"] |
Request
Route
DELETE /api/v1/users/profile/attachment
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODM1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk0LCJleHAiOjE3NDAxNDM1OTQsImp0aSI6IjA4OTE1NGQ1LTNiOWYtNDBmMC1hNjMyLWQxYTNiZmVkYTJlNSJ9.Ub5JNy1gm-jAIZJGo1ehaR0XgwEfuQp_iMLSrxJjySY
Host: example.org
Cookie:
Body
{
"profile": {
"attachment_type": "cv",
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MzUsInB1ciI6ImJsb2JfaWQifX0=--0d9085796d23cfba12c86d4907c6332b86f7b29a"
}
}
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/"fc4a19d61f7f11d6f8acb62b80fdc708"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1588ad46-ed4e-4ec4-9e58-5f8368b1d773
x-runtime: 0.010863
content-length: 471
Body
{
"record": {
"name": "cv",
"record": {
"updated_at": "2025-01-22T13:13:14.539Z",
"id": 713,
"postcode": "NG1 1AA",
"created_at": "2025-01-22T13:13:14.512Z",
"licenses": [
"b",
"c1e"
],
"bio": "Vomica sunt amplitudo. Atrocitas truculenter adicio.",
"english_level": "intermediate",
"verified_at": "2025-01-22T13:13:14.512Z",
"latitude": 40.7143528,
"longitude": -74.0059731,
"region": null,
"birth_date": "1992-10-17",
"start_date": "2021-09-15",
"contact_phone_number": "07185 948210",
"discarded_at": null
}
}
}