Associate Audited Organization with the User
PUT /v2/users/:guid/audited_organizations/:audited_organization_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-112/audited_organizations/2a49ca09-6f4c-48c8-9624-862cf681ed62
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-112/audited_organizations/2a49ca09-6f4c-48c8-9624-862cf681ed62" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMyIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjcwMn0.YOhOI7XBdXivkwhmIB2C4SXQs4eUkJMFNLW3zvzd6OQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-112",
"url": "/v2/users/uaa-id-112",
"created_at": "2014-11-13T23:38:22+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "4e7490bc-3536-420a-9e1e-de95f76864f9",
"default_space_url": "/v2/spaces/4e7490bc-3536-420a-9e1e-de95f76864f9",
"spaces_url": "/v2/users/uaa-id-112/spaces",
"organizations_url": "/v2/users/uaa-id-112/organizations",
"managed_organizations_url": "/v2/users/uaa-id-112/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-112/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-112/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-112/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-112/audited_spaces"
}
}