Update current driver’s profile.
Users > Profile
PUT update profile (main)
Endpoint
PUT /api/v1/users/profile
Parameters
| Name | Description |
|---|---|
| profile[first_name] required | Profile first name |
| profile[last_name] required | Profile last name |
| profile[postcode] required | Profile postcode |
| profile[english_level] required | Profile english level |
| profile[contact_phone_number] required | Profile contact phone number |
| profile[birth_date] | Profile birth date |
| profile[start_date] | Profile start date |
Request
Route
PUT /api/v1/users/profile
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTIwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE1LCJleHAiOjE3NjYyMTg0MTUsImp0aSI6IjJiNDYxYTQ5LTkwZGItNDg2Ny05NmNmLTFiM2JmNWZjNTRjOSJ9.XVxGWLv6H5GDEYyxiMwZaEwf6WViuMhbahP_w6TBvUs
Host: example.org
Cookie:
Body
{
"profile": {
"first_name": "Rigoberto",
"last_name": "Abernathy",
"postcode": "UP9B 1LN",
"english_level": "advanced",
"contact_phone_number": "07116 646469"
}
}
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/"de3f6704fe8c5404547e1b0d7670af58"
cache-control: max-age=0, private, must-revalidate
x-request-id: daf26c6f-5867-4b35-9a66-e5eaa0601e4e
x-runtime: 0.015910
content-length: 1138
Body
{
"profile": {
"id": 732,
"activities": [
],
"bio": "Coaegresco catena cognomen. In sequi substantia.",
"birth_date": "1985-10-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": "07116 646469",
"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": "shaunna.hoeger+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "advanced",
"experiences": [
],
"first_name": "Rigoberto",
"interviews": [
],
"last_name": "Abernathy",
"licenses": [
"c1e",
"ce"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "UP9B 1LN",
"reviews": [
],
"start_date": "2022-07-19",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}