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-302/organizations/630bdc73-446f-4788-bfeb-a3f899c58dac
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-302/organizations/630bdc73-446f-4788-bfeb-a3f899c58dac" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDJ9.rpLIRbD-HYIxbnuxv5pZMRexrQNgZ54cyr5ygG282is" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-302",
"url": "/v2/users/uaa-id-302",
"created_at": "2015-02-13T22:35:02Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "e5829a1e-a30d-4b22-bd4b-f03de3cce240",
"default_space_url": "/v2/spaces/e5829a1e-a30d-4b22-bd4b-f03de3cce240",
"spaces_url": "/v2/users/uaa-id-302/spaces",
"organizations_url": "/v2/users/uaa-id-302/organizations",
"managed_organizations_url": "/v2/users/uaa-id-302/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-302/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-302/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-302/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-302/audited_spaces"
}
}