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-193
Body
{
"default_space_guid": "459dc613-7ba3-424d-88e3-650f0d639fc3"
}
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-193" -d '{
"default_space_guid": "459dc613-7ba3-424d-88e3-650f0d639fc3"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzR9.UTKUhICZozV02G6ZmvwjBuLj7IIi7JntbPR9iS7Zn3s" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-193",
"url": "/v2/users/uaa-id-193",
"created_at": "2015-01-27T19:14:34Z",
"updated_at": "2015-01-27T19:14:34Z"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "459dc613-7ba3-424d-88e3-650f0d639fc3",
"default_space_url": "/v2/spaces/459dc613-7ba3-424d-88e3-650f0d639fc3",
"spaces_url": "/v2/users/uaa-id-193/spaces",
"organizations_url": "/v2/users/uaa-id-193/organizations",
"managed_organizations_url": "/v2/users/uaa-id-193/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-193/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-193/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-193/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-193/audited_spaces"
}
}