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/615
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTM0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjE1LCJleHAiOjE3NTU4NTgyMTUsImp0aSI6IjUwYTYzNzFlLWRlMmMtNDlkNy05YjAzLWEyYTQwZjBjN2UxNCJ9.lQDCbMe3N595zKxI8UZjljJl8iBRSXV4b3-wEUyo_Qs
Host: example.org
Cookie:
Body
{
"profile": {
"licenses": [
"d1e",
"d",
"adr",
"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/"9067cead25f92177a2635b431a089caf"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3f88af58-35e1-4261-af47-b80a736b86f3
x-runtime: 0.020170
content-length: 1158
Body
{
"profile": {
"id": 615,
"activities": [
],
"bio": "Vitium color texo. Cupiditas victoria nihil.",
"birth_date": "1985-07-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": "07949 193528",
"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": "madie.hamill+driver@example.com",
"enchanced_dbs": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"english_level": "beginner",
"experiences": [
],
"first_name": "Madie",
"interviews": [
],
"last_name": "Hamill",
"last_sign_in_at": null,
"licenses": [
"d1e",
"d",
"adr",
"phv"
],
"medical_check": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"phone_number": null,
"postcode": "LS1 1UR",
"reviews": [
],
"start_date": "2020-07-23",
"tacho": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
}
}
}