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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MSIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.ykp7QI-NtulFGYFza9FpSdW2BHhOFeG0zR0orpO4JWM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-290/billing_managed_organizations/b3a63ca3-db2b-4ce8-b378-ddce823fb806

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-290/billing_managed_organizations/b3a63ca3-db2b-4ce8-b378-ddce823fb806" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MSIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.ykp7QI-NtulFGYFza9FpSdW2BHhOFeG0zR0orpO4JWM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 46336b24-04a4-487a-ad00-69ec076bcdfb
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-290",
    "url": "/v2/users/uaa-id-290",
    "created_at": "2015-02-13T22:35:01Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "e1660960-3ec5-4602-9815-22e4a06fe492",
    "default_space_url": "/v2/spaces/e1660960-3ec5-4602-9815-22e4a06fe492",
    "spaces_url": "/v2/users/uaa-id-290/spaces",
    "organizations_url": "/v2/users/uaa-id-290/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-290/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-290/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-290/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-290/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-290/audited_spaces"
  }
}