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.eyJzdWIiOiIxNTUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDgsImV4cCI6MTc0NTA1NjkwOCwianRpIjoiY2VmMDEwYWEtMzM3YS00YjI2LTk4NzItNzY2YzI5NmRhZjJkIn0.GxKwAb79cw5gBZFHRATyva9x7CrSIWaZ5_wsP4Nuw_4
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/"fb094694f6c2bd3f4f501af946fb8b42"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1671a4a9-5a66-4737-a6f8-a2b8294c326c
x-runtime: 0.019081
content-length: 275
Body
{
"company_operator": {
"id": 42,
"contact_phone_number": "+1234567890123",
"created_at": "2025-03-20",
"job_position": "Updated",
"operator": {
"id": 154,
"active": false,
"admin": false,
"contact_phone_number": "+1234567890123",
"image": null,
"invitation_status": "accepted",
"title": "John Doe"
}
}
}