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.eyJzdWIiOiIxNjk1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzU4MDEyNTA4LCJleHAiOjE3NjA2MDQ1MDgsImp0aSI6ImE5Y2M4OWZjLWNmMGUtNGNkMi05OGU2LWE3YzY3OTU0MWI2NiJ9.YtoAXBhxflfsVGaJQthWTW9kTXa2nUfYBlOP3r_Y-Eo
Host: example.org
Cookie:
Body
{
"company_operator": {
"first_name": "Lidia",
"last_name": "Hammes",
"job_position": "junior operator",
"contact_phone_number": "+4407366871962"
}
}
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/"cd773c66e521abc402a67ce4a700811a"
cache-control: max-age=0, private, must-revalidate
x-request-id: d4e65e1e-5daa-49c9-8cf7-90e2089da114
x-runtime: 0.016660
content-length: 406
Body
{
"user": {
"id": 1695,
"company": {
"id": 635,
"address": "3515 Arthur Lake, East Kathleenshire, IN RA6 4AL",
"license_number": "2709624933",
"name": "Marquardt, Schimmel and Moore",
"state": "verified"
},
"contact_phone_number": "+4407366871962",
"email": "brenda.pouros+operator@example.com",
"first_name": "Lidia",
"job_position": "junior operator",
"last_name": "Hammes",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}