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/629
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTU0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDAyLCJleHAiOjE3NjYyMTg0MDIsImp0aSI6ImJlODZhNTMyLTAzNjgtNDQ1OS1hNTBlLTllZTEyMTZiZTUyOCJ9.YsRnk1e5FyPdcKqLSQVyUchY51igvxOD2K5nlrJSQ5c
Host: example.org
Cookie:
Body
{
"profile": {
"licenses": [
"b",
"c",
"c1e",
"d1e"
]
}
}
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/"59673b4b94427d047de38222def12e84"
cache-control: max-age=0, private, must-revalidate
x-request-id: b392c01e-2c04-45ec-9558-d0de40c3cffa
x-runtime: 0.022963
content-length: 1154
Body
{
"profile": {
"id": 629,
"activities": [
],
"bio": "Tyrannus stipes ullus. Amita sub arbitro.",
"birth_date": "1985-11-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": "07427 617840",
"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": "branden.paucek+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "native",
"experiences": [
],
"first_name": "Branden",
"interviews": [
],
"last_name": "Paucek",
"last_sign_in_at": null,
"licenses": [
"b",
"c",
"c1e",
"d1e"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "L1 1AA",
"reviews": [
],
"start_date": "2020-11-20",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}