Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-455/audited_spaces/ae341bb1-3101-4af0-9b83-14aaed39ba8f
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
audited_space_guid
|
The guid of the audited space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-455/audited_spaces/ae341bb1-3101-4af0-9b83-14aaed39ba8f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1NiIsImVtYWlsIjoiZW1haWwtMzMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NjB9.fOgMqNSeILxHm7O7vqH6WDlIgGF01AXhmkXRCJeK2q4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-455",
"url": "/v2/users/uaa-id-455",
"created_at": "2015-11-03T00:54:19Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "21693aca-9859-4274-b635-6c22004f3af0",
"default_space_url": "/v2/spaces/21693aca-9859-4274-b635-6c22004f3af0",
"spaces_url": "/v2/users/uaa-id-455/spaces",
"organizations_url": "/v2/users/uaa-id-455/organizations",
"managed_organizations_url": "/v2/users/uaa-id-455/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-455/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-455/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-455/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-455/audited_spaces"
}
}
Headers