Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-193/audited_organizations/4162a1d8-5a39-4256-b201-0bf52a560935
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-193/audited_organizations/4162a1d8-5a39-4256-b201-0bf52a560935" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDN9.UDLCSy1egWzvS_d9Dd0tjtyOaKamE7LOBi9c6GHWMI0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-193",
"url": "/v2/users/uaa-id-193",
"created_at": "2016-04-22T19:33:23Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "089fc7eb-e1b7-4ab2-a6dd-b7391ad0f46e",
"default_space_url": "/v2/spaces/089fc7eb-e1b7-4ab2-a6dd-b7391ad0f46e",
"spaces_url": "/v2/users/uaa-id-193/spaces",
"organizations_url": "/v2/users/uaa-id-193/organizations",
"managed_organizations_url": "/v2/users/uaa-id-193/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-193/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-193/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-193/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-193/audited_spaces"
}
}
Headers