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.eyJzdWIiOiIxNzE3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzMDIyMjI5LCJleHAiOjE3NjU2MTQyMjksImp0aSI6IjBhYjY2Mjc2LTkwZGUtNDdhZi1iODliLWMzYzYwNWQ4NzI1MiJ9.UN19SfL9-4xa-ckHI_KAwerUEtrTBsgiLkVC4xwd274
Host: example.org
Cookie: 

Body

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

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/"7c57f2f3a9d2c9dd134c318e88869e26"
cache-control: max-age=0, private, must-revalidate
x-request-id: 36a896c2-6a4c-4211-bcb6-d95b63a1c88b
x-runtime: 0.011401
content-length: 449

Body

{
  "user": {
    "id": 1717,
    "company": {
      "id": 649,
      "address": "247 Smith Glen, Rolandton, CT Y0 7UB",
      "country": "GBR",
      "currency": "GBP",
      "license_number": "8423187609",
      "name": "Hodkiewicz and Sons",
      "state": "verified"
    },
    "contact_phone_number": "+4407769536489",
    "email": "rob.johnston+operator@example.com",
    "financial_company_id": null,
    "first_name": "Tiffaney",
    "job_position": "junior operator",
    "last_name": "O'Conner",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}