Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-163/audited_organizations/6959246b-400f-4c21-88c3-6b4bb8b14b3f
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-163/audited_organizations/6959246b-400f-4c21-88c3-6b4bb8b14b3f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.fVd0oZtGDUn3rbOYh7_Xr447H9Zbz_AgTpn6ShqH_QU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-163",
"url": "/v2/users/uaa-id-163",
"created_at": "2015-08-06T00:36:39Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "32bdec98-7286-44e6-ba07-caae3e0d3be4",
"default_space_url": "/v2/spaces/32bdec98-7286-44e6-ba07-caae3e0d3be4",
"spaces_url": "/v2/users/uaa-id-163/spaces",
"organizations_url": "/v2/users/uaa-id-163/organizations",
"managed_organizations_url": "/v2/users/uaa-id-163/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-163/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-163/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-163/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-163/audited_spaces"
}
}
Headers