Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-308/organizations/1781302d-7719-405d-80e2-0d2514caa235
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
organization_guid
|
The guid of the organization
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-308/organizations/1781302d-7719-405d-80e2-0d2514caa235" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOSIsImVtYWlsIjoiZW1haWwtMjM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTV9.Fqm3RwzEAm1aueZ5fa5aBQ41Onc1jTml2s34n5x38Hg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-308",
"url": "/v2/users/uaa-id-308",
"created_at": "2015-10-13T17:31:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "34848099-a4dc-4070-bf11-6c91e4b7e4b7",
"default_space_url": "/v2/spaces/34848099-a4dc-4070-bf11-6c91e4b7e4b7",
"spaces_url": "/v2/users/uaa-id-308/spaces",
"organizations_url": "/v2/users/uaa-id-308/organizations",
"managed_organizations_url": "/v2/users/uaa-id-308/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-308/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-308/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-308/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-308/audited_spaces"
}
}
Headers