Home
Version 3
Users API

Users API

Remove Managed Organization from the User

DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid

Request

Route

DELETE /v2/users/uaa-id-65/managed_organizations/71066c9b-4dc4-4e7c-9815-3554b91451c0

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM5fQ.vwTC-40za97mVWCUslNeIf3_c71RbDcn_QHqlyICM3s
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-65/managed_organizations/71066c9b-4dc4-4e7c-9815-3554b91451c0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM5fQ.vwTC-40za97mVWCUslNeIf3_c71RbDcn_QHqlyICM3s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-65",
    "url": "/v2/users/uaa-id-65",
    "created_at": "2015-03-05T19:15:39Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "6f3f7ee4-9fe2-44e6-843c-fe1222e00017",
    "default_space_url": "/v2/spaces/6f3f7ee4-9fe2-44e6-843c-fe1222e00017",
    "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"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 395c004b-0d04-4468-805a-1a4759961617
Content-Length: 836
X-Content-Type-Options: nosniff