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/611
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDg4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg0LCJleHAiOjE3NDAxNDM1ODQsImp0aSI6ImRiZjBkYjZmLTc2ZWEtNDdjZS04ZmJkLWVkZGJjZDZlYTAyMCJ9.bsFQTQ-GagUgYbpkRAEZBXUZ67-8xRjGZXqtBeQYgDs
Host: example.org
Cookie:
Body
{
"profile": {
"licenses": [
"d1",
"d",
"c",
"hiab"
]
}
}
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/"9c0586a3053a7f62a6603b7e004279ea"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1e557fa1-d4cf-42be-ac0a-57acb6279e1e
x-runtime: 0.030509
content-length: 1156
Body
{
"profile": {
"id": 611,
"activities": [
],
"bio": "Centum animi capitulus. Pauci triginta taedium.",
"birth_date": "1985-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": "07842 815955",
"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": "ron.crist+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "intermediate",
"experiences": [
],
"first_name": "Ron",
"interviews": [
],
"last_name": "Crist",
"last_sign_in_at": null,
"licenses": [
"d1",
"d",
"c",
"hiab"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "L1 1AA",
"reviews": [
],
"start_date": "2020-01-22",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}