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-205/managed_organizations/5ae81ed2-10b1-4b6c-93cb-b7318921caa7

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-205/managed_organizations/5ae81ed2-10b1-4b6c-93cb-b7318921caa7" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njh9.DrKvpghLq4B5y98zebuQ7j_JAvQvx_ndKKxM8uNoGOw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-205",
    "url": "/v2/users/uaa-id-205",
    "created_at": "2015-03-18T22:52:48Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "b9d8004e-074c-4637-b3b1-a419b8a4b339",
    "default_space_url": "/v2/spaces/b9d8004e-074c-4637-b3b1-a419b8a4b339",
    "spaces_url": "/v2/users/uaa-id-205/spaces",
    "organizations_url": "/v2/users/uaa-id-205/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-205/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-205/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-205/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-205/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-205/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 27718b16-3d11-478c-b792-552bdc815959
Content-Length: 845
X-Content-Type-Options: nosniff