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-72/billing_managed_organizations/e8877131-2476-41cf-8b6c-3e1575f1abd3

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.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.u8MoMRJQ3Pq7rQBTOyvlcbIhBW-l96RCBXkPy2X3-2c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-72/billing_managed_organizations/e8877131-2476-41cf-8b6c-3e1575f1abd3" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.u8MoMRJQ3Pq7rQBTOyvlcbIhBW-l96RCBXkPy2X3-2c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-72",
    "url": "/v2/users/uaa-id-72",
    "created_at": "2015-03-05T19:15:40Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "dfaf0319-2c13-46f7-87be-f90007bb9e36",
    "default_space_url": "/v2/spaces/dfaf0319-2c13-46f7-87be-f90007bb9e36",
    "spaces_url": "/v2/users/uaa-id-72/spaces",
    "organizations_url": "/v2/users/uaa-id-72/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-72/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-72/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-72/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-72/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-72/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a4e42097-ec6c-4d16-9968-5d45e5325d86
Content-Length: 836
X-Content-Type-Options: nosniff