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-376/managed_organizations/d12e2143-d4e8-41cb-ba72-2bdb33bbd119

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-376/managed_organizations/d12e2143-d4e8-41cb-ba72-2bdb33bbd119" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.apykkLd5kbJ_j6vOFCDl5N20-nmcNZS6g9yqWeBiKYg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-376",
    "url": "/v2/users/uaa-id-376",
    "created_at": "2015-05-07T23:37:27Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "147dd1b4-7529-48c1-88df-6c34a89f009c",
    "default_space_url": "/v2/spaces/147dd1b4-7529-48c1-88df-6c34a89f009c",
    "spaces_url": "/v2/users/uaa-id-376/spaces",
    "organizations_url": "/v2/users/uaa-id-376/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-376/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-376/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-376/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-376/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-376/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ecc42e1c-7948-4ca5-94a3-f2a4f5ebfaa9
Content-Length: 845
X-Content-Type-Options: nosniff