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-34/billing_managed_organizations/5ac38f2d-84a7-455a-808b-ec67cabd0e5a

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-34/billing_managed_organizations/5ac38f2d-84a7-455a-808b-ec67cabd0e5a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1NTU3OTI4fQ.TBifyEVx5-NeLAfpxFOplFOPJ7MKul1UuMzrxuJydhc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-34",
    "url": "/v2/users/uaa-id-34",
    "created_at": "2015-10-15T23:52:08Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "e887bf31-66cd-4674-ae6c-9fb72e7c02b8",
    "default_space_url": "/v2/spaces/e887bf31-66cd-4674-ae6c-9fb72e7c02b8",
    "spaces_url": "/v2/users/uaa-id-34/spaces",
    "organizations_url": "/v2/users/uaa-id-34/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-34/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-34/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-34/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-34/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-34/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 09daf707-78cb-460c-a4bd-d97cca4f1937
Content-Length: 836
X-Content-Type-Options: nosniff