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-51/audited_spaces/1c5d57a4-0410-48a5-a992-6cdb4e3046ac
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-51/audited_spaces/1c5d57a4-0410-48a5-a992-6cdb4e3046ac" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUyIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.XK-XfsxZGUA9fbRzvj9IFmTLhDGE4sZytnTTP32QGAQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-51",
"url": "/v2/users/uaa-id-51",
"created_at": "2014-11-05T01:02:12+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "b21ea527-7dc7-45fc-99b4-f97bfb5df0f9",
"default_space_url": "/v2/spaces/b21ea527-7dc7-45fc-99b4-f97bfb5df0f9",
"spaces_url": "/v2/users/uaa-id-51/spaces",
"organizations_url": "/v2/users/uaa-id-51/organizations",
"managed_organizations_url": "/v2/users/uaa-id-51/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-51/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-51/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-51/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-51/audited_spaces"
}
}