Updating a User
PUT /v2/users/:guid
Fields
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).
|
|
|
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-39
Body
{
"default_space_guid": "99815243-b5e8-432a-bc85-400b3a01f0a4"
}
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-39" -d '{
"default_space_guid": "99815243-b5e8-432a-bc85-400b3a01f0a4"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMxfQ.WsT21-ARP8JXaliO8dYR3ZJbPJ2jyc-OQDb0t9hgrys" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-39",
"url": "/v2/users/uaa-id-39",
"created_at": "2014-11-05T01:02:11+00:00",
"updated_at": "2014-11-05T01:02:11+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "99815243-b5e8-432a-bc85-400b3a01f0a4",
"default_space_url": "/v2/spaces/99815243-b5e8-432a-bc85-400b3a01f0a4",
"spaces_url": "/v2/users/uaa-id-39/spaces",
"organizations_url": "/v2/users/uaa-id-39/organizations",
"managed_organizations_url": "/v2/users/uaa-id-39/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-39/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-39/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-39/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-39/audited_spaces"
}
}