Update a user
This endpoint updates an existing user.
PUT /openapi/v1/users/{user_id}
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
user_id |
string |
ID of the user object being updated. |
The JSON request body contains the following parameters
Name |
Type |
Description |
---|---|---|
|
string |
Email associated with user account. |
first_name |
string |
First name. |
last_name |
string |
Last name. |
app_scope_id |
string |
Root App Scope ID (only allowed for site admins) |
Response object: Returns the newly updated user object.
Sample python code
req_payload = {
"first_name": "fname",
"last_name": "lname",
"email": "foo@bar.com"
"app_scope_id": "root_appscope_id",
}
restclient.put('/users', json_body=json.dumps(req_payload))