Update current driver’s profile.
Users > Profile
PUT update profile (additional)
Endpoint
PUT /api/v1/users/profile
Parameters
Name | Description |
---|---|
profile[bio] | Profile bio |
profile[licenses] | Profile licenses |
profile[skill_ids] | Profile skill ids |
Request
Route
PUT /api/v1/users/profile
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODg4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTQxLCJleHAiOjE3NTExMDg1NDEsImp0aSI6IjAwZmUzNGRkLTdmMDAtNGM2Ny1iYzY2LTQxYjE3OTY4OGJiYSJ9.rj6Ihq_5VTCfew9Sajy73qxZd16FVFbtgAJwn1-Y15c
Host: example.org
Cookie:
Body
{
"profile": {
"bio": "Aliquam velit asperiores. Sunt aliquam sint. Unde ex doloremque.",
"licenses": [
"hiab",
"b",
"c1e",
"c"
]
}
}
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/"afe3f5f6dad7cbd3af182a9b63524c40"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8d8aac64-9bea-49d8-aee3-379645bcbc43
x-runtime: 0.015272
content-length: 1157
Body
{
"profile": {
"id": 714,
"activities": [
],
"bio": "Aliquam velit asperiores. Sunt aliquam sint. Unde ex doloremque.",
"birth_date": "1982-05-23",
"child_safeguard_training": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"compliance_documents": [
"dbs",
"tacho",
"enchanced_dbs",
"cpc",
"medical_check",
"child_safeguard_training"
],
"contact_phone_number": "07189 407313",
"cpc": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"cv": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"documents": [
],
"driving_license": [
],
"email": "abe.weissnat+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "proficient",
"experiences": [
],
"first_name": "Abe",
"interviews": [
],
"last_name": "Weissnat",
"licenses": [
"hiab",
"b",
"c1e",
"c"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "EC1A 1BB",
"reviews": [
],
"start_date": "2021-08-26",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}