Update company operator
Company Operators
PUT company operator(admin)
Endpoint
PUT /api/v1/companies/:company_id/company_operators/:id
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/companies/42/company_operators/154
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzIsImV4cCI6MTc1NTg1ODE3MiwianRpIjoiNTIyNjU0MWEtMTg3OS00ZDA3LTkzZWMtM2M4OTRiZTVmMTY2In0.utLV5zrfPAk9zsnbu_YjLF8QcvaLVKD5D_N_iACATMg
Host: example.org
Cookie:
Body
{
"company_operator": {
"first_name": "John",
"last_name": "Doe",
"job_position": "Updated",
"contact_phone_number": "+1234567890123"
}
}
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/"764f1238d1840a7e9666f52114483b67"
cache-control: max-age=0, private, must-revalidate
x-request-id: 87f49f31-cfcd-4bba-abd4-7ebb65a894eb
x-runtime: 0.019311
content-length: 274
Body
{
"company_operator": {
"id": 42,
"contact_phone_number": "+1234567890123",
"created_at": "2025-07-23",
"job_position": "Updated",
"operator": {
"id": 154,
"active": true,
"admin": false,
"contact_phone_number": "+1234567890123",
"image": null,
"invitation_status": "accepted",
"title": "John Doe"
}
}
}