Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-41/managed_organizations/accc2f77-910d-4f1a-86af-18afa2450655
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-41/managed_organizations/accc2f77-910d-4f1a-86af-18afa2450655" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMzOTgxMDk3fQ.0z037oBCk2enkhSMhjTlAEwgJqhIBwfQ3SJQTb_6T6Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-41",
"url": "/v2/users/uaa-id-41",
"created_at": "2015-06-04T00:04:57Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d35b59f4-655d-4bb5-8787-c4aa53e74dfb",
"default_space_url": "/v2/spaces/d35b59f4-655d-4bb5-8787-c4aa53e74dfb",
"spaces_url": "/v2/users/uaa-id-41/spaces",
"organizations_url": "/v2/users/uaa-id-41/organizations",
"managed_organizations_url": "/v2/users/uaa-id-41/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-41/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-41/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-41/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-41/audited_spaces"
}
}
Headers