Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-251/managed_organizations/ef51218f-d1ac-4dfb-9bc4-05b1531338cc
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-251/managed_organizations/ef51218f-d1ac-4dfb-9bc4-05b1531338cc" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MyIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzB9.iKlJmv0q84Jffd4uOdmL3Z8RWINpZdkxlYAKay9vgak" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-251",
"url": "/v2/users/uaa-id-251",
"created_at": "2015-03-03T00:51:10Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "0b18d11c-6cc3-4b6a-bd0c-280c68e53e28",
"default_space_url": "/v2/spaces/0b18d11c-6cc3-4b6a-bd0c-280c68e53e28",
"spaces_url": "/v2/users/uaa-id-251/spaces",
"organizations_url": "/v2/users/uaa-id-251/organizations",
"managed_organizations_url": "/v2/users/uaa-id-251/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-251/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-251/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-251/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-251/audited_spaces"
}
}
Headers