Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-50/audited_organizations/34e8f74b-52bd-4a81-8af2-fbbd0d35cbaf
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
audited_organization_guid
|
The guid of the audited organization
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-50/audited_organizations/34e8f74b-52bd-4a81-8af2-fbbd0d35cbaf" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4ODU1NjY1fQ.-cyeuzDowjGd2VC23Cao8gAnHXux0CLZB9C3wJJaxjE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-50",
"url": "/v2/users/uaa-id-50",
"created_at": "2016-03-17T21:41:05Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7057ff50-6241-4234-9b9e-f66d817a7191",
"default_space_url": "/v2/spaces/7057ff50-6241-4234-9b9e-f66d817a7191",
"spaces_url": "/v2/users/uaa-id-50/spaces",
"organizations_url": "/v2/users/uaa-id-50/organizations",
"managed_organizations_url": "/v2/users/uaa-id-50/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-50/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-50/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-50/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-50/audited_spaces"
}
}
Headers