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-25/billing_managed_organizations/595c321b-9523-4e04-a752-72a94a5df7ad

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMyfQ.2LET9XgfIJyVw9WjWDoqsyOxJRzRZaJ9JIozz1dwPOs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-25/billing_managed_organizations/595c321b-9523-4e04-a752-72a94a5df7ad" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMyfQ.2LET9XgfIJyVw9WjWDoqsyOxJRzRZaJ9JIozz1dwPOs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-25",
    "url": "/v2/users/uaa-id-25",
    "created_at": "2015-04-15T00:55:32Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "719dafb3-caa0-4fbf-be12-d603eebe8fd5",
    "default_space_url": "/v2/spaces/719dafb3-caa0-4fbf-be12-d603eebe8fd5",
    "spaces_url": "/v2/users/uaa-id-25/spaces",
    "organizations_url": "/v2/users/uaa-id-25/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-25/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-25/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-25/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-25/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-25/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f60d93bc-8d85-4cf7-be91-22d69cc6bfe2
Content-Length: 836
X-Content-Type-Options: nosniff