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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzd9.xSVAYU7MUSeoNF6XU0fNYbik3YVOL7XKZzivf_G6gNs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-306/managed_organizations/1b1d26b0-86bf-4b62-82dd-1393d5552851

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-306/managed_organizations/1b1d26b0-86bf-4b62-82dd-1393d5552851" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzd9.xSVAYU7MUSeoNF6XU0fNYbik3YVOL7XKZzivf_G6gNs" \
	-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: ac312098-e6d4-46f2-ade7-74540b55306a
Content-Length: 850
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-306",
    "url": "/v2/users/uaa-id-306",
    "created_at": "2014-12-24T01:39:37+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f4055be9-5cc1-4411-abe4-afe32f955f42",
    "default_space_url": "/v2/spaces/f4055be9-5cc1-4411-abe4-afe32f955f42",
    "spaces_url": "/v2/users/uaa-id-306/spaces",
    "organizations_url": "/v2/users/uaa-id-306/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-306/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-306/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-306/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-306/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-306/audited_spaces"
  }
}