Users

Update a user(admin)

PUT update admin profile

Endpoint

PUT /api/v1/users/:id

Parameters

Name Description
review[first_name] Review first name
review[last_name] Review last name
review[phone_number] Review phone number

Request

Route

PUT /api/v1/users/1980

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTgwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE2LCJleHAiOjE3NjYyMTg0MTYsImp0aSI6IjkwMmVkZjEzLTEyY2ItNDhjYS05MTlkLThjYjFjMjRkZDc5ZCJ9.sygryTfBJHDeBnK-h3OXvRhsTsxm25jbe8H-W7IJrxg
Host: example.org
Cookie: 

Body

{
  "user": {
    "first_name": "Updated",
    "last_name": "Bradtke"
  }
}

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/"4542d0ac24774a465d60942da85c2d7b"
cache-control: max-age=0, private, must-revalidate
x-request-id: faa15e89-8ec0-4e72-bf7f-17844c27576a
x-runtime: 0.006289
content-length: 190

Body

{
  "user": {
    "id": 1980,
    "email": "larraine.spinka+admin@example.com",
    "financial_company_id": null,
    "first_name": "Updated",
    "last_name": "Bradtke",
    "phone_number": null,
    "profile_id": null,
    "role": "admin"
  }
}