Update User

 
MethodURIDescription
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)

 Request

This table shows the header parameters for the update user request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token for an administrative user.

This table shows the URI parameters for the update user request:

NameTypeDescription

{userId}

​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
  }
}

 Response
 

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
  }
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...