Updating a User
PUT /v2/users/:guid
Request
Route
PUT /v2/users/uaa-id-92
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": "5866eedd-ff5e-40e2-be5c-13561f6824de"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-92" -d '{
"default_space_guid": "5866eedd-ff5e-40e2-be5c-13561f6824de"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQxfQ.j9ZIXIhHv-65qAHa7RYAcOmircgfhq_H25EauB0-iDQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-92",
"url": "/v2/users/uaa-id-92",
"created_at": "2015-03-05T19:15:41Z",
"updated_at": "2015-03-05T19:15:41Z"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "5866eedd-ff5e-40e2-be5c-13561f6824de",
"default_space_url": "/v2/spaces/5866eedd-ff5e-40e2-be5c-13561f6824de",
"spaces_url": "/v2/users/uaa-id-92/spaces",
"organizations_url": "/v2/users/uaa-id-92/organizations",
"managed_organizations_url": "/v2/users/uaa-id-92/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-92/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-92/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-92/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-92/audited_spaces"
}
}
Headers