Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_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
DELETE /v2/users/uaa-id-156/managed_organizations/fb2e9b33-6d52-45ae-8ec4-4e931761a878
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-156/managed_organizations/fb2e9b33-6d52-45ae-8ec4-4e931761a878" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OCIsImVtYWlsIjoiZW1haWwtMTIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzN9.ilbqgYSwn4mikNh9xUAbXGldtBpdTaPiVUpTSEN3apM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-156",
"url": "/v2/users/uaa-id-156",
"created_at": "2015-01-27T19:14:32Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "c3ea3585-777f-42ec-8fe5-339313081d83",
"default_space_url": "/v2/spaces/c3ea3585-777f-42ec-8fe5-339313081d83",
"spaces_url": "/v2/users/uaa-id-156/spaces",
"organizations_url": "/v2/users/uaa-id-156/organizations",
"managed_organizations_url": "/v2/users/uaa-id-156/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-156/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-156/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-156/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-156/audited_spaces"
}
}