Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-314/managed_organizations/41b2e501-c3b2-46e7-8abf-6447789cdd6e
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-314/managed_organizations/41b2e501-c3b2-46e7-8abf-6447789cdd6e" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNiIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTV9.H_MYkrHCmS1-9Bmcu7vJ5J-opvVpfGA7CI_UKNm6UxY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-314",
"url": "/v2/users/uaa-id-314",
"created_at": "2015-10-13T17:31:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "c5cfc789-5b43-4b03-a03f-c65f02d36c3b",
"default_space_url": "/v2/spaces/c5cfc789-5b43-4b03-a03f-c65f02d36c3b",
"spaces_url": "/v2/users/uaa-id-314/spaces",
"organizations_url": "/v2/users/uaa-id-314/organizations",
"managed_organizations_url": "/v2/users/uaa-id-314/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-314/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-314/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-314/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-314/audited_spaces"
}
}
Headers