Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-158/audited_spaces/1a724bb9-5b5c-45a7-b586-3ea8fde4cb4f
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-158/audited_spaces/1a724bb9-5b5c-45a7-b586-3ea8fde4cb4f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OSIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDN9.1KBU6A_pHXurgxCBWZQH6L5wCStpG-oi5Jo9TsqgIhM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-158",
"url": "/v2/users/uaa-id-158",
"created_at": "2015-03-10T23:11:42Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6302561e-aceb-4d2d-8898-722498ac016c",
"default_space_url": "/v2/spaces/6302561e-aceb-4d2d-8898-722498ac016c",
"spaces_url": "/v2/users/uaa-id-158/spaces",
"organizations_url": "/v2/users/uaa-id-158/organizations",
"managed_organizations_url": "/v2/users/uaa-id-158/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-158/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-158/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-158/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-158/audited_spaces"
}
}
Headers