Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-371/audited_spaces/9fa0b498-167a-4705-845a-6885265d0451
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-371/audited_spaces/9fa0b498-167a-4705-845a-6885265d0451" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MiIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.8103oH2y5iacyjwoJi_Xh0lDl8QrB0rcqW57dXHOQWM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-371",
"url": "/v2/users/uaa-id-371",
"created_at": "2016-05-12T00:45:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "bc043fef-92ad-4d6f-9dc5-5f1ec8da7c5b",
"default_space_url": "/v2/spaces/bc043fef-92ad-4d6f-9dc5-5f1ec8da7c5b",
"spaces_url": "/v2/users/uaa-id-371/spaces",
"organizations_url": "/v2/users/uaa-id-371/organizations",
"managed_organizations_url": "/v2/users/uaa-id-371/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-371/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-371/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-371/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-371/audited_spaces"
}
}
Headers