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-320/managed_organizations/2a5156c4-3458-47c5-8998-316728bbdc5a

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.ONt3Xc5UE8Ymd9BQlM0hqLGhhpAp-DrLODQRMOTe-r0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-320/managed_organizations/2a5156c4-3458-47c5-8998-316728bbdc5a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.ONt3Xc5UE8Ymd9BQlM0hqLGhhpAp-DrLODQRMOTe-r0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-320",
    "url": "/v2/users/uaa-id-320",
    "created_at": "2015-09-30T23:30:51Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "ed65b918-438f-4a5e-9d02-105a51c82180",
    "default_space_url": "/v2/spaces/ed65b918-438f-4a5e-9d02-105a51c82180",
    "spaces_url": "/v2/users/uaa-id-320/spaces",
    "organizations_url": "/v2/users/uaa-id-320/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-320/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-320/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-320/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-320/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-320/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 28c50030-f826-4911-b324-c656d811fdce
Content-Length: 845
X-Content-Type-Options: nosniff