Update a User
put
https://api.example.com/v1/users/{id}
Update an existing user by ID.
PARH PARAMS
integer
ID of the user to update
BODY PARAMS
namestring
Updated full name of the user
emailstring
Updated email address of the user
rolestring
Updated role of the user
PUT /users/1 HTTP/1.1
Host: api.example.com
Authorization: Bearer <your_access_token>
Content-Type: application/json
{
"name": "John Doe Updated",
"role": "admin"
}
LANGUAGE
Shell
Node
Ruby
PHP
C
REQUEST