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-153/managed_organizations/bb2d20cc-3c36-4376-aff9-f25e486cc724

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.7NRGmqiv8siKmZmL0Xqnyv_uGcZJTXycwBtCkT8vK9E
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-153/managed_organizations/bb2d20cc-3c36-4376-aff9-f25e486cc724" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.7NRGmqiv8siKmZmL0Xqnyv_uGcZJTXycwBtCkT8vK9E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-153",
    "url": "/v2/users/uaa-id-153",
    "created_at": "2015-08-06T00:36:38Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "d7ef7258-7068-43d1-a5ba-db940e9ccf45",
    "default_space_url": "/v2/spaces/d7ef7258-7068-43d1-a5ba-db940e9ccf45",
    "spaces_url": "/v2/users/uaa-id-153/spaces",
    "organizations_url": "/v2/users/uaa-id-153/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-153/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-153/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-153/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-153/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-153/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3c5c96e9-20f1-400c-b3d3-41822dec102b
Content-Length: 845
X-Content-Type-Options: nosniff