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-361/managed_organizations/a69eae70-dfa4-47a2-8f06-b038339b183c

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njl9.TFw_1MA8JkqlBfilr4gB-3VsbA_JlBQFHV3BqvGkCiY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-361/managed_organizations/a69eae70-dfa4-47a2-8f06-b038339b183c" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njl9.TFw_1MA8JkqlBfilr4gB-3VsbA_JlBQFHV3BqvGkCiY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-361",
    "url": "/v2/users/uaa-id-361",
    "created_at": "2015-03-20T18:27:49Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7fe39e8b-fe33-4862-9408-9d7a24745463",
    "default_space_url": "/v2/spaces/7fe39e8b-fe33-4862-9408-9d7a24745463",
    "spaces_url": "/v2/users/uaa-id-361/spaces",
    "organizations_url": "/v2/users/uaa-id-361/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-361/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-361/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-361/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-361/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-361/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6871f0ee-1ef0-4251-980e-858b51d3e71b
Content-Length: 845
X-Content-Type-Options: nosniff