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.eyJzdWIiOiIxODMzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk0LCJleHAiOjE3NDAxNDM1OTQsImp0aSI6Ijg0MjU2NTU5LTk3MjktNDE4Yi1hMmRhLTVjZDE5MjY1ZDRjNiJ9.1kn-91vyp6zHr1-aP1qjbwzz7aBL6CkRCM7C3zwLPEw
Host: example.org
Cookie:
Body
{
"profile": {
"bio": "Cumque architecto numquam. Impedit sit doloribus. Quia sint vel.",
"licenses": [
"b",
"ce",
"d1",
"adr"
]
}
}
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/"c7ff120da9f1b0d47823531a9e3715c5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3c2e4b0f-5a67-439e-967f-b9cf1f2ed03b
x-runtime: 0.031880
content-length: 1158
Body
{
"profile": {
"id": 711,
"activities": [
],
"bio": "Cumque architecto numquam. Impedit sit doloribus. Quia sint vel.",
"birth_date": "1978-07-25",
"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": "07116 713642",
"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": "alberto.doyle+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "proficient",
"experiences": [
],
"first_name": "Alberto",
"interviews": [
],
"last_name": "Doyle",
"licenses": [
"b",
"ce",
"d1",
"adr"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "EC1A 1BB",
"reviews": [
],
"start_date": "2022-01-06",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}