Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-191/organizations/6c7d7f1c-f69b-41d5-87ae-cbc76c78194f
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-191/organizations/6c7d7f1c-f69b-41d5-87ae-cbc76c78194f" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTd9.P84luYRXyrG_ue0zkl4NznQd4rLHUYAYqo6hpBZ89cE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-191",
"url": "/v2/users/uaa-id-191",
"created_at": "2015-07-27T22:43:17Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "ff47c5f7-a441-4f5c-826a-126f7abf3f2b",
"default_space_url": "/v2/spaces/ff47c5f7-a441-4f5c-826a-126f7abf3f2b",
"spaces_url": "/v2/users/uaa-id-191/spaces",
"organizations_url": "/v2/users/uaa-id-191/organizations",
"managed_organizations_url": "/v2/users/uaa-id-191/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-191/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-191/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-191/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-191/audited_spaces"
}
}
Headers