Home
Version 3
Users API

Users API

Remove Managed Organization from the User

DELETE /v2/users/:guid/managed_organizations/:managed_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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI4fQ.APKjV9Os8SZT7CLy8lqB3ab-uN2F542rZ4VFedGbYUc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-26/managed_organizations/522b91d1-9171-489d-bca2-44190b464aef

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-26/managed_organizations/522b91d1-9171-489d-bca2-44190b464aef" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI4fQ.APKjV9Os8SZT7CLy8lqB3ab-uN2F542rZ4VFedGbYUc" \
	-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: 08705b10-5631-4cdd-aaef-ae6fc0b0da31
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-26",
    "url": "/v2/users/uaa-id-26",
    "created_at": "2015-01-20T01:52:08+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "deff9b27-7d84-405d-9bf2-5f94ad660bd3",
    "default_space_url": "/v2/spaces/deff9b27-7d84-405d-9bf2-5f94ad660bd3",
    "spaces_url": "/v2/users/uaa-id-26/spaces",
    "organizations_url": "/v2/users/uaa-id-26/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-26/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-26/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-26/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-26/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-26/audited_spaces"
  }
}