Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-356/organizations/62017af5-6735-4a35-ba76-a147a3713b07
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-356/organizations/62017af5-6735-4a35-ba76-a147a3713b07" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDZ9.J4-u2I7HzBkoCCtPtrgskMQnEbYA346BkFKpbo-8bDk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-356",
"url": "/v2/users/uaa-id-356",
"created_at": "2015-05-07T23:37:26Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "4ef59ef2-2328-4928-aa0e-d07e71c4a25f",
"default_space_url": "/v2/spaces/4ef59ef2-2328-4928-aa0e-d07e71c4a25f",
"spaces_url": "/v2/users/uaa-id-356/spaces",
"organizations_url": "/v2/users/uaa-id-356/organizations",
"managed_organizations_url": "/v2/users/uaa-id-356/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-356/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-356/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-356/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-356/audited_spaces"
}
}
Headers