Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
DELETE /v2/users/uaa-id-319/organizations/bea13946-8e8d-4ee3-be0c-cf98403392d1
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-319/organizations/bea13946-8e8d-4ee3-be0c-cf98403392d1" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzh9.TkhGKIeNePPuz5G_ddkOijEBstqfBD_QRZl6TOdeYX8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-319",
"url": "/v2/users/uaa-id-319",
"created_at": "2014-12-24T01:39:38+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6ba4e5d6-0824-4819-9bf6-4e23d40656c6",
"default_space_url": "/v2/spaces/6ba4e5d6-0824-4819-9bf6-4e23d40656c6",
"spaces_url": "/v2/users/uaa-id-319/spaces",
"organizations_url": "/v2/users/uaa-id-319/organizations",
"managed_organizations_url": "/v2/users/uaa-id-319/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-319/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-319/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-319/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-319/audited_spaces"
}
}