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

Route

DELETE /v2/users/uaa-id-276/managed_organizations/912da0ec-45f5-4c74-9efa-09ff76871fab

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-276/managed_organizations/912da0ec-45f5-4c74-9efa-09ff76871fab" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.z7NxkSdcPwbT2lKOMz7LNYiaqCGNjscrQuxLyC2APuE" \
	-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: 54940c00-c711-492b-b491-caa62a1dbc58
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-276",
    "url": "/v2/users/uaa-id-276",
    "created_at": "2015-02-13T22:35:00Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "37474144-ad8b-4636-8924-e88e3775759a",
    "default_space_url": "/v2/spaces/37474144-ad8b-4636-8924-e88e3775759a",
    "spaces_url": "/v2/users/uaa-id-276/spaces",
    "organizations_url": "/v2/users/uaa-id-276/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-276/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-276/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-276/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-276/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-276/audited_spaces"
  }
}