Remove Managed Organization from the User
DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
DELETE /v2/users/uaa-id-376/managed_organizations/ec0544be-ae47-4668-8787-ecf3261cb9d3
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-376/managed_organizations/ec0544be-ae47-4668-8787-ecf3261cb9d3" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjd9.6Q-4kkHD1r43i6IIH-wtwzlx4L95TovoPK2d7wNUA7I" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-376",
"url": "/v2/users/uaa-id-376",
"created_at": "2015-05-15T16:53:47Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "61a7f054-808b-4df5-8950-7df9409e93ed",
"default_space_url": "/v2/spaces/61a7f054-808b-4df5-8950-7df9409e93ed",
"spaces_url": "/v2/users/uaa-id-376/spaces",
"organizations_url": "/v2/users/uaa-id-376/organizations",
"managed_organizations_url": "/v2/users/uaa-id-376/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-376/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-376/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-376/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-376/audited_spaces"
}
}
Headers