Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-1/managed_organizations/db240b55-c478-4b51-93f9-831abfdf7ba8
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
managed_organization_guid
|
The guid of the managed_organization
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-1/managed_organizations/db240b55-c478-4b51-93f9-831abfdf7ba8" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1NzkyNn0.k-Exi80OquSRxgYuPc9ZdvK1jR6a96XYseeFCz-3Aig" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-1",
"url": "/v2/users/uaa-id-1",
"created_at": "2015-10-15T23:52:06Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "a6e66a54-d21b-4e05-abd8-1361a854405f",
"default_space_url": "/v2/spaces/a6e66a54-d21b-4e05-abd8-1361a854405f",
"spaces_url": "/v2/users/uaa-id-1/spaces",
"organizations_url": "/v2/users/uaa-id-1/organizations",
"managed_organizations_url": "/v2/users/uaa-id-1/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-1/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-1/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-1/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-1/audited_spaces"
}
}
Headers