Update current operator’s profile.
Users > Company
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.eyJzdWIiOiIxNjMzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg5LCJleHAiOjE3NDAxNDM1ODksImp0aSI6IjQyMjljZTM3LWNhMjgtNDQzYS1iMmQwLTBkNzIxYzIyMTdjYiJ9.mKHdXEJ_BbpaNU724IXfL4C_pYOsX7NOyziICNRFsIk
Host: example.org
Cookie:
Body
{
"company_operator": {
"first_name": "Delmer",
"last_name": "Mueller",
"job_position": "junior operator",
"contact_phone_number": "+4407543080606"
}
}
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/"00ab07b176bbefc7cf891067aba7f34a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 689c50a7-6c20-4d68-a08a-dba6962ee0da
x-runtime: 0.013844
content-length: 392
Body
{
"user": {
"id": 1633,
"company": {
"id": 610,
"address": "59269 Marvin Center, New Javier, TN K5W 0AL",
"license_number": "8401892842",
"name": "Krajcik-O'Connell",
"state": "verified"
},
"contact_phone_number": "+4407543080606",
"email": "mario.mckenzie+operator@example.com",
"first_name": "Delmer",
"job_position": "junior operator",
"last_name": "Mueller",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}