Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-125/audited_spaces/ebd3f3c1-9562-4a52-bde9-8e999f348458
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-125/audited_spaces/ebd3f3c1-9562-4a52-bde9-8e999f348458" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtNjlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4MX0.uZANKR1AqfuZhiOYAbMbS7NDWH-YKBqZ4BRfNe22Owk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-125",
"url": "/v2/users/uaa-id-125",
"created_at": "2015-12-22T18:28:01Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "23980afc-dbc2-4f52-aceb-f948298039c3",
"default_space_url": "/v2/spaces/23980afc-dbc2-4f52-aceb-f948298039c3",
"spaces_url": "/v2/users/uaa-id-125/spaces",
"organizations_url": "/v2/users/uaa-id-125/organizations",
"managed_organizations_url": "/v2/users/uaa-id-125/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-125/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-125/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-125/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-125/audited_spaces"
}
}
Headers