Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-331/organizations/cae738de-06c3-4c82-8604-6a764748e954
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-331/organizations/cae738de-06c3-4c82-8604-6a764748e954" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njd9.ErSwR_8PzLevXgkw1miV06hvqhuYI1RwrFvjdehIY9o" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-331",
"url": "/v2/users/uaa-id-331",
"created_at": "2015-03-20T18:27:47Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d61ff036-0413-41f8-8029-ce806c96c358",
"default_space_url": "/v2/spaces/d61ff036-0413-41f8-8029-ce806c96c358",
"spaces_url": "/v2/users/uaa-id-331/spaces",
"organizations_url": "/v2/users/uaa-id-331/organizations",
"managed_organizations_url": "/v2/users/uaa-id-331/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-331/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-331/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-331/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-331/audited_spaces"
}
}
Headers