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.eyJzdWIiOiIxNzIxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDEwLCJleHAiOjE3NjYyMTg0MTAsImp0aSI6IjE5MDBlMDA1LWRmZWYtNGMyNi1iYTZjLWZiNDk1ZDlkNGUzNSJ9.bpxrUFRfr-1QyI5Flz-J_F3zFeH_8_grqxey-LsMKxA
Host: example.org
Cookie: 

Body

{
  "company_operator": {
    "first_name": "Gina",
    "last_name": "Grady",
    "job_position": "junior operator",
    "contact_phone_number": "+4407943914301"
  }
}

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/"3b30ddbb7381672dcc1c6c9fc04a9b4f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3d463657-5d20-4179-aa14-de42533ae19d
x-runtime: 0.013857
content-length: 467

Body

{
  "user": {
    "id": 1721,
    "company": {
      "id": 649,
      "address": "Apt. 683 8301 Aufderhar Islands, Sengerland, RI R9 0NL",
      "country": "GBR",
      "currency": "GBP",
      "license_number": "5043920677",
      "name": "Bergnaum, Predovic and Lind",
      "state": "verified"
    },
    "contact_phone_number": "+4407943914301",
    "email": "adele.fadel+operator@example.com",
    "financial_company_id": null,
    "first_name": "Gina",
    "job_position": "junior operator",
    "last_name": "Grady",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}