Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Request
Route
PUT /v2/users/uaa-id-374/audited_spaces/a3fd1484-4168-4b14-86d0-f7a42f4ae86b
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-374/audited_spaces/a3fd1484-4168-4b14-86d0-f7a42f4ae86b" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NSIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjZ9.jXil_bFWz8O7SNop8BV6o-uHHZEzV3ihPWbpNBo5fq4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-374",
"url": "/v2/users/uaa-id-374",
"created_at": "2015-05-15T16:53:46Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7fae3acb-964e-490b-ba3b-341ba4a7c32f",
"default_space_url": "/v2/spaces/7fae3acb-964e-490b-ba3b-341ba4a7c32f",
"spaces_url": "/v2/users/uaa-id-374/spaces",
"organizations_url": "/v2/users/uaa-id-374/organizations",
"managed_organizations_url": "/v2/users/uaa-id-374/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-374/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-374/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-374/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-374/audited_spaces"
}
}
Headers