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-168/managed_organizations/9bfc860c-07de-4c1a-9ea8-a2526b1eed13

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-168/managed_organizations/9bfc860c-07de-4c1a-9ea8-a2526b1eed13" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.cOEz9kvFRG2joqHbai98pg3kmfVPFmdCeBGhIr0f08c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-168",
    "url": "/v2/users/uaa-id-168",
    "created_at": "2015-04-07T19:11:44Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "ad6b3d33-6bd6-4d01-8c62-0afd1a7e7251",
    "default_space_url": "/v2/spaces/ad6b3d33-6bd6-4d01-8c62-0afd1a7e7251",
    "spaces_url": "/v2/users/uaa-id-168/spaces",
    "organizations_url": "/v2/users/uaa-id-168/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-168/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-168/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-168/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-168/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-168/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c618cba7-5458-47ad-921e-c77cbaad1a14
Content-Length: 845
X-Content-Type-Options: nosniff