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.eyJzdWIiOiIxNjc0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc0LCJleHAiOjE3NjM1NDI0NzQsImp0aSI6ImFkYWI5YjBlLThkMGYtNDZhNC1hOWFkLTkwNGJjYjU5Njg3YyJ9.Q7Tjdt8cDvvoYbZ5cGjmJwF5DxOHDTc45eZ66jJI35Y
Host: example.org
Cookie:
Body
{
"company_operator": {
"first_name": "Julius",
"last_name": "Stiedemann",
"job_position": "junior operator",
"contact_phone_number": "+4407978453740"
}
}
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/"4967a0b570164f2f230e5a641610671f"
cache-control: max-age=0, private, must-revalidate
x-request-id: be92f4a8-401f-4c32-b60e-ce3439338717
x-runtime: 0.011442
content-length: 417
Body
{
"user": {
"id": 1674,
"company": {
"id": 630,
"address": "369 Nolan Fall, Peggystad, AZ Z6 0NZ",
"country": "GBR",
"currency": "GBP",
"license_number": "2898730126",
"name": "Pfeffer and Sons",
"state": "verified"
},
"contact_phone_number": "+4407978453740",
"email": "olga.rippin+operator@example.com",
"first_name": "Julius",
"job_position": "junior operator",
"last_name": "Stiedemann",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}