Home
Version 3
Users API

Users API

Remove Billing Managed Organization from the User

DELETE /v2/users/:guid/billing_managed_organizations/:billing_managed_organization_guid

Request

Route

DELETE /v2/users/uaa-id-212/billing_managed_organizations/1aef3624-6e94-4f04-9335-248986ff3763

Parameters

Name Description Valid Values Example Values
guid The guid of the User
billing_managed_organization_guid The guid of the billing managed organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.qMbgNly-ItPI08y0S6Q7wetlHJbtQev-KxgJia9SHR8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-212/billing_managed_organizations/1aef3624-6e94-4f04-9335-248986ff3763" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.qMbgNly-ItPI08y0S6Q7wetlHJbtQev-KxgJia9SHR8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-212",
    "url": "/v2/users/uaa-id-212",
    "created_at": "2015-07-27T22:43:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f5c52ee3-b2c9-4cec-824d-637277b7b7d3",
    "default_space_url": "/v2/spaces/f5c52ee3-b2c9-4cec-824d-637277b7b7d3",
    "spaces_url": "/v2/users/uaa-id-212/spaces",
    "organizations_url": "/v2/users/uaa-id-212/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-212/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-212/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-212/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-212/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-212/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d879c38-bab3-4215-8e61-588ecbbfb852
Content-Length: 845
X-Content-Type-Options: nosniff