Home
Version 3
Users API

Users API

Remove Organization from the User

DELETE /v2/users/:guid/organizations/:organization_guid

Request

Route

DELETE /v2/users/uaa-id-28/organizations/b2101e67-91e2-4880-927a-9ee0a47001a3

Parameters

Name Description Valid Values Example Values
guid The guid of the User
organization_guid The guid of the organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk0fQ.EpBERYNRUS8__Lq4Xlk2Ogp3GWyY_W-tbFKhrl8WOCw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-28/organizations/b2101e67-91e2-4880-927a-9ee0a47001a3" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk0fQ.EpBERYNRUS8__Lq4Xlk2Ogp3GWyY_W-tbFKhrl8WOCw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-28",
    "url": "/v2/users/uaa-id-28",
    "created_at": "2015-08-31T21:49:54Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "5358ef03-17c5-4f21-938b-4e3d0b3bfda8",
    "default_space_url": "/v2/spaces/5358ef03-17c5-4f21-938b-4e3d0b3bfda8",
    "spaces_url": "/v2/users/uaa-id-28/spaces",
    "organizations_url": "/v2/users/uaa-id-28/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-28/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-28/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-28/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-28/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-28/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 91cbf41e-7ec9-440a-81f9-af78704f2d28
Content-Length: 836
X-Content-Type-Options: nosniff