Complete driver registration. Create curernt driver’s profile.
Users > Profile
POST create profile
Endpoint
POST /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[birth_date] required | Profile birth date |
profile[start_date] required | Profile start date |
profile[contact_phone_number] required | Profile contact phone number |
Request
Route
POST /api/v1/users/profile
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODI4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk0LCJleHAiOjE3NDAxNDM1OTQsImp0aSI6IjQ1Yzk0MTFhLWNlNzktNDFlYi05MTUzLTYwMzEzNjJlZDNhZiJ9.eDfgiquTJTscO-O6E1lzsTE_sHy9dhsQeIgG-O3sgws
Host: example.org
Cookie:
Body
{
"profile": {
"first_name": "Kirby",
"last_name": "D'Amore",
"postcode": "123",
"start_date": "2020-01-22T13:13:14.136Z",
"birth_date": "2000-01-22T13:13:14.136Z",
"contact_phone_number": "07451 171848"
}
}
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/"e31162e53860f2314e82c5f6b90cb8a9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0372c1fa-8b60-43f0-942e-61dd0f110385
x-runtime: 0.036225
content-length: 1052
Body
{
"profile": {
"id": 708,
"activities": [
],
"bio": null,
"birth_date": "2000-01-22",
"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": "07451 171848",
"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": ".+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": null,
"experiences": [
],
"first_name": "Kirby",
"interviews": [
],
"last_name": "D'Amore",
"licenses": [
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "123",
"reviews": [
],
"start_date": "2020-01-22",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}