Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-55/audited_organizations/6fb273b0-4366-46ea-a1df-b421c86d4e95
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-55/audited_organizations/6fb273b0-4366-46ea-a1df-b421c86d4e95" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjU1fQ.Lu3fbqvdkbWM3-64sUv8XdGHrcpFjijQHO_ZoZyo8oU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-55",
"url": "/v2/users/uaa-id-55",
"created_at": "2016-01-19T19:40:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7b133490-38ad-4bd9-98d0-cbf4ea631ff2",
"default_space_url": "/v2/spaces/7b133490-38ad-4bd9-98d0-cbf4ea631ff2",
"spaces_url": "/v2/users/uaa-id-55/spaces",
"organizations_url": "/v2/users/uaa-id-55/organizations",
"managed_organizations_url": "/v2/users/uaa-id-55/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-55/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-55/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-55/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-55/audited_spaces"
}
}
Headers