Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-227/audited_organizations/6e2e5f49-ff17-442e-b30c-ee14afefa161
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-227/audited_organizations/6e2e5f49-ff17-442e-b30c-ee14afefa161" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjN9.JczLTVVL182jLE4__YoTmwjJ6CB0UdMY4rxCjhB0VM0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-227",
"url": "/v2/users/uaa-id-227",
"created_at": "2016-01-26T22:20:23Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "1624ef07-aa06-4fad-b428-d0b9a8f15e0f",
"default_space_url": "/v2/spaces/1624ef07-aa06-4fad-b428-d0b9a8f15e0f",
"spaces_url": "/v2/users/uaa-id-227/spaces",
"organizations_url": "/v2/users/uaa-id-227/organizations",
"managed_organizations_url": "/v2/users/uaa-id-227/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-227/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-227/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-227/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-227/audited_spaces"
}
}
Headers