Associate Audited Space with the User
PUT /v2/users/:guid/audited_spaces/:audited_space_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-133/audited_spaces/b0e27cf7-121d-47b7-bfd0-5aa860c8e636
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-133/audited_spaces/b0e27cf7-121d-47b7-bfd0-5aa860c8e636" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDN9.Kjk1uOOwUna2TKIuyTVE-5DUBUMBQv1Is6pVmi8Zig4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-133",
"url": "/v2/users/uaa-id-133",
"created_at": "2014-11-13T23:38:23+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "14db3957-9e2e-49e5-a772-68f4876c7287",
"default_space_url": "/v2/spaces/14db3957-9e2e-49e5-a772-68f4876c7287",
"spaces_url": "/v2/users/uaa-id-133/spaces",
"organizations_url": "/v2/users/uaa-id-133/organizations",
"managed_organizations_url": "/v2/users/uaa-id-133/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-133/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-133/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-133/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-133/audited_spaces"
}
}