Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-128/organizations/1cc9d243-1c0d-43f6-a54e-1a8d8cc68f96
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-128/organizations/1cc9d243-1c0d-43f6-a54e-1a8d8cc68f96" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOSIsImVtYWlsIjoiZW1haWwtOTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzOTQyNjE5OH0.LaNje9Amzz2H1K8ye9tTgUgcfAdyi9zyAXb5_cm6FhQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-128",
"url": "/v2/users/uaa-id-128",
"created_at": "2015-08-06T00:36:37Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "9decf038-91ca-4605-b796-f7f629e0886b",
"default_space_url": "/v2/spaces/9decf038-91ca-4605-b796-f7f629e0886b",
"spaces_url": "/v2/users/uaa-id-128/spaces",
"organizations_url": "/v2/users/uaa-id-128/organizations",
"managed_organizations_url": "/v2/users/uaa-id-128/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-128/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-128/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-128/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-128/audited_spaces"
}
}
Headers