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-137/organizations/e252ac59-b3cb-4abd-8f4b-3af2e9ffec48
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-137/organizations/e252ac59-b3cb-4abd-8f4b-3af2e9ffec48" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDN9.cEvhtWLdAgzwUAFuGmltcSsRkLVrxb60An3H5QEQmu4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-137",
"url": "/v2/users/uaa-id-137",
"created_at": "2014-11-13T23:38:23+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "9d3b2045-891d-477a-96da-f2985f832911",
"default_space_url": "/v2/spaces/9d3b2045-891d-477a-96da-f2985f832911",
"spaces_url": "/v2/users/uaa-id-137/spaces",
"organizations_url": "/v2/users/uaa-id-137/organizations",
"managed_organizations_url": "/v2/users/uaa-id-137/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-137/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-137/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-137/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-137/audited_spaces"
}
}