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-199/managed_organizations/a2913edb-e73e-4699-adbd-ddef923d300a

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-199/managed_organizations/a2913edb-e73e-4699-adbd-ddef923d300a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMSIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.-4RJoVaFG50UfS7JNqgUYtqapzkO4q2GSHDTePKWGQI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-199",
    "url": "/v2/users/uaa-id-199",
    "created_at": "2015-07-27T22:43:17Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "606c6be5-cfd3-4ef4-a83b-564db4c72588",
    "default_space_url": "/v2/spaces/606c6be5-cfd3-4ef4-a83b-564db4c72588",
    "spaces_url": "/v2/users/uaa-id-199/spaces",
    "organizations_url": "/v2/users/uaa-id-199/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-199/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-199/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-199/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-199/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-199/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a5f91c5f-bf32-4edc-87ca-985bdf3fb73e
Content-Length: 845
X-Content-Type-Options: nosniff