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/json" \
-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": "2016-06-08T16:41:26Z"
},
"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
Audit Records Created By The Request
Audit Record: audit.user.space_auditor_add
Attribute Name |
Value |
id
|
3
|
guid
|
3ae5862c-fb43-49ed-935b-8feb7d0e19e8
|
created_at
|
2016-06-08 16:41:40 UTC
|
updated_at
|
|
timestamp
|
2016-06-08 16:41:40 UTC
|
type
|
audit.user.space_auditor_add
|
actor
|
uaa-id-360
|
actor_type
|
user
|
actee
|
2a01cf80-9fbf-448f-a7a0-1e415e28771e
|
actee_type
|
space
|
metadata
|
{
"request": null
}
|
organization_guid
|
28960823-1b68-4a2b-8f36-77cc573bccca
|
space_guid
|
2a01cf80-9fbf-448f-a7a0-1e415e28771e
|
actor_name
|
[email protected]
|
actee_name
|
development
|