Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-352/organizations/474ec566-eb4a-45f7-ae12-f00c4b227c6a
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-352/organizations/474ec566-eb4a-45f7-ae12-f00c4b227c6a" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTJ9.aZJtp0nT214tGRiMxZhcu12b0lmtqblvbRWrYTgAy5M" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-352",
"url": "/v2/users/uaa-id-352",
"created_at": "2015-09-30T23:30:52Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "01d523d9-5d2a-4129-805d-2919ae0ece7f",
"default_space_url": "/v2/spaces/01d523d9-5d2a-4129-805d-2919ae0ece7f",
"spaces_url": "/v2/users/uaa-id-352/spaces",
"organizations_url": "/v2/users/uaa-id-352/organizations",
"managed_organizations_url": "/v2/users/uaa-id-352/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-352/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-352/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-352/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-352/audited_spaces"
}
}
Headers