Home
Version 3
Users API

Users API

Remove Organization from the User

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.TeOKiDiDiMBAz2XCu3ejX1O77XnLof8K7D_aPHF1YOM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-65/organizations/e00a567e-868f-46f6-b8f4-3c2c8277bd39

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-65/organizations/e00a567e-868f-46f6-b8f4-3c2c8277bd39" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.TeOKiDiDiMBAz2XCu3ejX1O77XnLof8K7D_aPHF1YOM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0efd4e1e-56e6-4478-93fd-e13d7412e26c
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-65",
    "url": "/v2/users/uaa-id-65",
    "created_at": "2014-11-05T01:02:12+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "b3d44038-2f08-4116-be0f-b45c268fa573",
    "default_space_url": "/v2/spaces/b3d44038-2f08-4116-be0f-b45c268fa573",
    "spaces_url": "/v2/users/uaa-id-65/spaces",
    "organizations_url": "/v2/users/uaa-id-65/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-65/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-65/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-65/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-65/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-65/audited_spaces"
  }
}