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-162/billing_managed_organizations/410c027a-64f5-42ea-93f2-b61e0e3d4c30

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.dy9ooSTMg_cRK3dB4qJruGC_hUU2PyC-8qMiqNvHMww
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-162/billing_managed_organizations/410c027a-64f5-42ea-93f2-b61e0e3d4c30" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.dy9ooSTMg_cRK3dB4qJruGC_hUU2PyC-8qMiqNvHMww" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-162",
    "url": "/v2/users/uaa-id-162",
    "created_at": "2015-04-07T19:11:44Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "13e03211-f1c2-4f75-93af-6bb533d1b790",
    "default_space_url": "/v2/spaces/13e03211-f1c2-4f75-93af-6bb533d1b790",
    "spaces_url": "/v2/users/uaa-id-162/spaces",
    "organizations_url": "/v2/users/uaa-id-162/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-162/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-162/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-162/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-162/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-162/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 28bdf5eb-2130-4d18-bf8e-222e716042ad
Content-Length: 845
X-Content-Type-Options: nosniff