Users > Company

Update current operator’s profile.

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.eyJzdWIiOiIxNjk1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjIyLCJleHAiOjE3NTU4NTgyMjIsImp0aSI6IjdkZDY1MmNiLWI0MGItNGVkZC05NTQzLWNjZTk4MWJkNTY1MSJ9.RgTS9HeIJUhlZHlYokrvdvJozjmWirFavOsYn4jAnFU
Host: example.org
Cookie: 

Body

{
  "company_operator": {
    "first_name": "Jenice",
    "last_name": "O'Conner",
    "job_position": "junior operator",
    "contact_phone_number": "+4407843843686"
  }
}

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/"4594a7eaa19c8fd391212c49e7e0b61b"
cache-control: max-age=0, private, must-revalidate
x-request-id: b223f22d-96c3-4318-9267-12c0dcb982dd
x-runtime: 0.015520
content-length: 400

Body

{
  "user": {
    "id": 1695,
    "company": {
      "id": 635,
      "address": "5678 Grant Inlet, East Maxwelltown, NV W66 1GY",
      "license_number": "1384743101",
      "name": "Orn, Hills and Champlin",
      "state": "verified"
    },
    "contact_phone_number": "+4407843843686",
    "email": "vince.cronin+operator@example.com",
    "first_name": "Jenice",
    "job_position": "junior operator",
    "last_name": "O'Conner",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}