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-401/managed_organizations/b1dfba59-f849-4818-bcb4-089cb290b8c6

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-401/managed_organizations/b1dfba59-f849-4818-bcb4-089cb290b8c6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.RiQOB6kUZHXhSVQsbtc76eSqVbPU1h2biefoqJTa_I0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-401",
    "url": "/v2/users/uaa-id-401",
    "created_at": "2015-09-11T18:39:09Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f63a929b-b58c-44fe-b47a-f56265c387e6",
    "default_space_url": "/v2/spaces/f63a929b-b58c-44fe-b47a-f56265c387e6",
    "spaces_url": "/v2/users/uaa-id-401/spaces",
    "organizations_url": "/v2/users/uaa-id-401/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-401/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-401/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-401/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-401/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-401/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7f58f647-47af-4ea7-ae70-f4dc630f171b
Content-Length: 845
X-Content-Type-Options: nosniff