Company Operators

Update company operator

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.eyJzdWIiOiIxNTUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY0OTcsImV4cCI6MTc1MTEwODQ5NywianRpIjoiNWI3N2RmY2YtNWI3YS00NDdkLWEwY2MtNzNmZWM1MmY1MDJjIn0.mzbeH9Ys9gDoePjc4uw7iE4IaN84pqvg2Q_8WOthC1E
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/"d2deb668cfaf75da669227e443869394"
cache-control: max-age=0, private, must-revalidate
x-request-id: c376dc77-38b7-4791-8c2f-60e897f8da4c
x-runtime: 0.019917
content-length: 274

Body

{
  "company_operator": {
    "id": 42,
    "contact_phone_number": "+1234567890123",
    "created_at": "2025-05-29",
    "job_position": "Updated",
    "operator": {
      "id": 154,
      "active": true,
      "admin": false,
      "contact_phone_number": "+1234567890123",
      "image": null,
      "invitation_status": "accepted",
      "title": "John Doe"
    }
  }
}