Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-45/organizations/031e7661-a4b7-45a2-8631-e6028e81736a
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-45/organizations/031e7661-a4b7-45a2-8631-e6028e81736a" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM5fQ.NvnnuqTXafxyNkRAmuOKk5fJm4mOf3BHqNGW9DKXNpE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-45",
"url": "/v2/users/uaa-id-45",
"created_at": "2015-03-05T19:15:39Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "b22f9ae0-7f2a-471b-be46-5499213382e7",
"default_space_url": "/v2/spaces/b22f9ae0-7f2a-471b-be46-5499213382e7",
"spaces_url": "/v2/users/uaa-id-45/spaces",
"organizations_url": "/v2/users/uaa-id-45/organizations",
"managed_organizations_url": "/v2/users/uaa-id-45/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-45/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-45/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-45/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-45/audited_spaces"
}
}
Headers