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-233/organizations/c0e8125f-4bec-42cb-bb08-0b08d7128e02
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-233/organizations/c0e8125f-4bec-42cb-bb08-0b08d7128e02" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNCIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjV9.vlhLnvkMqbV63aroKAGP3XXE53_zT65YEo-BVnmKUgE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-233",
"url": "/v2/users/uaa-id-233",
"created_at": "2014-11-24T19:32:45+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7ee12072-fc8c-4826-81e5-abf856b15680",
"default_space_url": "/v2/spaces/7ee12072-fc8c-4826-81e5-abf856b15680",
"spaces_url": "/v2/users/uaa-id-233/spaces",
"organizations_url": "/v2/users/uaa-id-233/organizations",
"managed_organizations_url": "/v2/users/uaa-id-233/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-233/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-233/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-233/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-233/audited_spaces"
}
}