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/37/company_operators/143

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDQiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTMsImV4cCI6MTc0MDE0MzU1MywianRpIjoiMzQ2NjhjM2MtNTg3Zi00NGI3LWEwNjgtZWI2NzVhZjgyODJkIn0.yUlrm5lZvmJfBAOa7jV7-rFeo9VY46fi-eQAXks4st8
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/"f5fea92f2c98b9830f97318be2da890c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 45a58160-fee7-4631-bb75-958dd49ed559
x-runtime: 0.205095
content-length: 260

Body

{
  "company_operator": {
    "id": 37,
    "contact_phone_number": "+1234567890123",
    "created_at": "2025-01-22",
    "job_position": "Updated",
    "operator": {
      "id": 143,
      "admin": false,
      "contact_phone_number": "+1234567890123",
      "image": null,
      "invitation_status": "accepted",
      "title": "John Doe"
    }
  }
}