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.eyJzdWIiOiIxNjg4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM2LCJleHAiOjE3NTExMDg1MzYsImp0aSI6ImJhM2FmMGQxLTdiZjgtNDA1Yi05MmY5LTBhMTZhNzU0OGRiNiJ9.FHLF7ykk60gpI4H26bvBHhcybhJTPEqRUZne8-wAizY
Host: example.org
Cookie: 

Body

{
  "company_operator": {
    "first_name": "Tobias",
    "last_name": "Adams",
    "job_position": "junior operator",
    "contact_phone_number": "+4407716500335"
  }
}

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/"016b11f901227e51789b6f2a50f4ab54"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6abd38aa-de0d-4a2a-89db-43cf60876f07
x-runtime: 0.011478
content-length: 412

Body

{
  "user": {
    "id": 1688,
    "company": {
      "id": 632,
      "address": "Apt. 394 7951 Spinka Prairie, Eldridgechester, OH ZY1 7LB",
      "license_number": "9278959034",
      "name": "Sporer, Bernhard and Wolf",
      "state": "verified"
    },
    "contact_phone_number": "+4407716500335",
    "email": "rhett.schmeler+operator@example.com",
    "first_name": "Tobias",
    "job_position": "junior operator",
    "last_name": "Adams",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}