Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-391/organizations/89a5c6b5-d30f-4680-b1bc-a83cf75c31ca
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-391/organizations/89a5c6b5-d30f-4680-b1bc-a83cf75c31ca" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjd9.DqvpTIMNks28lnsfrmBD8k3rNLL1xIrag0z7eLA6VWU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-391",
"url": "/v2/users/uaa-id-391",
"created_at": "2015-05-15T16:53:47Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "0d8b9e45-3458-4cc9-9c2f-7c86b52dec84",
"default_space_url": "/v2/spaces/0d8b9e45-3458-4cc9-9c2f-7c86b52dec84",
"spaces_url": "/v2/users/uaa-id-391/spaces",
"organizations_url": "/v2/users/uaa-id-391/organizations",
"managed_organizations_url": "/v2/users/uaa-id-391/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-391/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-391/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-391/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-391/audited_spaces"
}
}
Headers