Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-180/managed_organizations/edf97528-7db0-4325-abfd-f8467ef7d886
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-180/managed_organizations/edf97528-7db0-4325-abfd-f8467ef7d886" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDR9.c8Y2de5a798ODbIiqIcwBh0z1ujC1-1CDudCNYTqnVs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-180",
"url": "/v2/users/uaa-id-180",
"created_at": "2015-03-10T23:11:44Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "01772dcd-e2ac-469b-9335-44e6fdaa4471",
"default_space_url": "/v2/spaces/01772dcd-e2ac-469b-9335-44e6fdaa4471",
"spaces_url": "/v2/users/uaa-id-180/spaces",
"organizations_url": "/v2/users/uaa-id-180/organizations",
"managed_organizations_url": "/v2/users/uaa-id-180/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-180/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-180/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-180/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-180/audited_spaces"
}
}
Headers