Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-280/audited_spaces/012602a2-98d7-4ab7-a766-bdf5a841c2d4
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-280/audited_spaces/012602a2-98d7-4ab7-a766-bdf5a841c2d4" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MSIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.kfaO23FAWR3YCNdhokXWCNm3cGpDFmeL_s__LI0OUgE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-280",
"url": "/v2/users/uaa-id-280",
"created_at": "2016-06-08T16:41:36Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "06ed47f7-656a-4f31-8b3a-b0bdaaafc826",
"default_space_url": "/v2/spaces/06ed47f7-656a-4f31-8b3a-b0bdaaafc826",
"spaces_url": "/v2/users/uaa-id-280/spaces",
"organizations_url": "/v2/users/uaa-id-280/organizations",
"managed_organizations_url": "/v2/users/uaa-id-280/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-280/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-280/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-280/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-280/audited_spaces"
}
}
Headers