Update current operator’s profile.
Users > Company
PUT update operator profile
Endpoint
PUT /api/v1/users/company_operator
Parameters
Name | Description |
---|---|
company_operator[first_name] required | Company operator first name |
company_operator[last_name] required | Company operator last name |
company_operator[job_position] | Company operator job position |
company_operator[contact_phone_number] required | Company operator contact phone number |
Request
Route
PUT /api/v1/users/company_operator
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjY0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ4LCJleHAiOjE3NDUwNTY5NDgsImp0aSI6IjdlYjkyODgxLTE0MDktNDgzYS04Nzk5LTZiMjFmMjI4MzJkYiJ9.H624A8j3RmM0Vgft2jYDibujpUc1LGDbNHld2ibR-iY
Host: example.org
Cookie:
Body
{
"company_operator": {
"first_name": "Jermaine",
"last_name": "Spencer",
"job_position": "junior operator",
"contact_phone_number": "+4407798598070"
}
}
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/"be6635706ac52b6f88b2f6757e879fec"
cache-control: max-age=0, private, must-revalidate
x-request-id: f15b06c8-95cf-4c25-a263-546491796b10
x-runtime: 0.019134
content-length: 399
Body
{
"user": {
"id": 1664,
"company": {
"id": 619,
"address": "8939 Walsh Spring, Dariushaven, MA ZD86 2BW",
"license_number": "1368217942",
"name": "Schaefer, Funk and Hahn",
"state": "verified"
},
"contact_phone_number": "+4407798598070",
"email": "bertram.crist+operator@example.com",
"first_name": "Jermaine",
"job_position": "junior operator",
"last_name": "Spencer",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}