Update user’s profile(admin)
Profiles
PUT profile(admin)
Endpoint
PUT /api/v1/profiles/:id
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/profiles/610
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTEzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDY4LCJleHAiOjE3NjM1NDI0NjgsImp0aSI6ImJiYzExMmYyLWJkZWQtNGEwMS04OTExLWJkYTQyZDlhZWYyMyJ9.7C7R8PC2COtVJwuNiynAMIWz2Lk29Bsiu4-pKk3TbQc
Host: example.org
Cookie:
Body
{
"profile": {
"licenses": [
"ce",
"hiab",
"b",
"phv"
]
}
}
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/"41c1ffc68ce6253a64f38dc597c9c383"
cache-control: max-age=0, private, must-revalidate
x-request-id: 94ba9c2e-8127-4161-9c19-7cbc85fb1111
x-runtime: 0.021187
content-length: 1161
Body
{
"profile": {
"id": 610,
"activities": [
],
"bio": "Amitto eos consequatur. Vicinus dedico communis.",
"birth_date": "1985-10-20",
"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": "07454 606299",
"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": "ngan.cremin+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "advanced",
"experiences": [
],
"first_name": "Ngan",
"interviews": [
],
"last_name": "Cremin",
"last_sign_in_at": null,
"licenses": [
"ce",
"hiab",
"b",
"phv"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "EC1A 1BB",
"reviews": [
],
"start_date": "2020-10-20",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}