Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-240/audited_spaces/d52ffb7e-4ec4-4279-a7d1-eaaabc0b078a
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-240/audited_spaces/d52ffb7e-4ec4-4279-a7d1-eaaabc0b078a" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjN9.hoEe08RhiWt3YDtkE51QBA9mHCvyN3OjlSTp5jt_1Ik" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-240",
"url": "/v2/users/uaa-id-240",
"created_at": "2016-01-26T22:20:23Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "294256c4-d96a-4eef-afe7-d479985e573e",
"default_space_url": "/v2/spaces/294256c4-d96a-4eef-afe7-d479985e573e",
"spaces_url": "/v2/users/uaa-id-240/spaces",
"organizations_url": "/v2/users/uaa-id-240/organizations",
"managed_organizations_url": "/v2/users/uaa-id-240/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-240/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-240/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-240/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-240/audited_spaces"
}
}
Headers