Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-201/organizations/946c6ec1-649c-4b54-ac48-d274fc72374f
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-201/organizations/946c6ec1-649c-4b54-ac48-d274fc72374f" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.VkGT4BWILdNzIDNvXNkZyT9k0NsKLraFsdtnbAgRS7Y" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-201",
"url": "/v2/users/uaa-id-201",
"created_at": "2015-06-16T23:40:53Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "0a06c05e-5eb4-426a-8993-51d34a75b368",
"default_space_url": "/v2/spaces/0a06c05e-5eb4-426a-8993-51d34a75b368",
"spaces_url": "/v2/users/uaa-id-201/spaces",
"organizations_url": "/v2/users/uaa-id-201/organizations",
"managed_organizations_url": "/v2/users/uaa-id-201/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-201/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-201/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-201/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-201/audited_spaces"
}
}
Headers