Update a user(admin)
Users
PUT update admin profile
Endpoint
PUT /api/v1/users/:id
Parameters
Name | Description |
---|---|
review[first_name] required | Review first name |
review[last_name] required | Review last name |
Request
Route
PUT /api/v1/users/1867
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODY3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk1LCJleHAiOjE3NDAxNDM1OTUsImp0aSI6ImI5OTM5M2U1LTQxMDktNGE0ZS04MzU0LWMzNjYyYzYwZWUxYSJ9.FdxBwmfGCtm6VhutySKP0HVGLmRhUUND3PGcLxBEXPI
Host: example.org
Cookie:
Body
{
"user": {
"first_name": "Updated",
"last_name": "Glover"
}
}
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/"453e7a4cd8d532e7092aed1fb95ff850"
cache-control: max-age=0, private, must-revalidate
x-request-id: 55ca6ed7-fd78-4699-81de-697e504c83ef
x-runtime: 0.009879
content-length: 162
Body
{
"user": {
"id": 1867,
"email": "sonya.mccullough+admin@example.com",
"first_name": "Updated",
"last_name": "Glover",
"phone_number": null,
"profile_id": null,
"role": "admin"
}
}