Method | URI | Description |
---|---|---|
PUT | /v2.0/users/{userId} | Updates a user. |
Normal response codes: 200
Error response codes: identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415), itemNotFound (404)
This table shows the header parameters for the update user request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token for an administrative user. |
This table shows the URI parameters for the update user request:
Name | Type | Description |
---|---|---|
| String | The ID of the user for which you want to perform the request. |
Example 4.7. Update User: XML request
<?xml version="1.0" encoding="UTF-8"?> <user xmlns="http://docs.openstack.org/identity/api/v2.0" enabled="true" email="[email protected]" name="jqsmith" id="u1000"/>
Example 4.8. Update User: JSON request
{ "user": { "id": "u1000", "name": "jqsmith", "email": "[email protected]", "enabled": true } }
Example 4.9. Update User: XML response
<?xml version="1.0" encoding="UTF-8"?> <user xmlns="http://docs.openstack.org/identity/api/v2.0" enabled="true" email="[email protected]" name="jqsmith" id="u1000"/>
Example 4.10. Update User: JSON response
{ "user": { "id": "u1000", "name": "jqsmith", "email": "[email protected]", "enabled": true } }