Updating a User
PUT /v2/users/:guid
Request
Route
PUT /v2/users/uaa-id-54
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
default_space_guid
|
The guid of the default space for apps created by this user.
|
|
|
|
admin
|
Whether the user is an admin (Use UAA instead).
|
|
|
|
{
"default_space_guid": "53d9324c-3939-4b63-856a-0a952792a37d"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-54" -d '{
"default_space_guid": "53d9324c-3939-4b63-856a-0a952792a37d"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.KIqqPOA8v2yNQkH2ciMIsy-lL7IX3WUs2BHbKlpSc78" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-54",
"url": "/v2/users/uaa-id-54",
"created_at": "2015-07-06T23:22:55Z",
"updated_at": "2015-07-06T23:22:55Z"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "53d9324c-3939-4b63-856a-0a952792a37d",
"default_space_url": "/v2/spaces/53d9324c-3939-4b63-856a-0a952792a37d",
"spaces_url": "/v2/users/uaa-id-54/spaces",
"organizations_url": "/v2/users/uaa-id-54/organizations",
"managed_organizations_url": "/v2/users/uaa-id-54/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-54/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-54/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-54/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-54/audited_spaces"
}
}
Headers