Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Request
Route
PUT /v2/users/uaa-id-327/audited_organizations/b7f682aa-94af-4581-94a1-f1c94a280ee4
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-327/audited_organizations/b7f682aa-94af-4581-94a1-f1c94a280ee4" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njd9.1LakJXmFDQiPsJwK8evQ38Uo8-diBpps2E64IGAI07A" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-327",
"url": "/v2/users/uaa-id-327",
"created_at": "2015-03-20T18:27:47Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d81561b5-c57a-4bfc-bea1-19cfbf1d15ae",
"default_space_url": "/v2/spaces/d81561b5-c57a-4bfc-bea1-19cfbf1d15ae",
"spaces_url": "/v2/users/uaa-id-327/spaces",
"organizations_url": "/v2/users/uaa-id-327/organizations",
"managed_organizations_url": "/v2/users/uaa-id-327/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-327/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-327/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-327/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-327/audited_spaces"
}
}
Headers