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-358/billing_managed_organizations/fa61e6fe-186b-41fa-a3f3-5fd46daa4a47

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjZ9.FQILr6eFKLSO-SBUYmP8CFoWOUCmiT-JFlX8Z6TpoyY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-358/billing_managed_organizations/fa61e6fe-186b-41fa-a3f3-5fd46daa4a47" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjZ9.FQILr6eFKLSO-SBUYmP8CFoWOUCmiT-JFlX8Z6TpoyY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-358",
    "url": "/v2/users/uaa-id-358",
    "created_at": "2015-05-15T16:53:46Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "22ff57c5-8150-4308-b9cd-56118859dcfa",
    "default_space_url": "/v2/spaces/22ff57c5-8150-4308-b9cd-56118859dcfa",
    "spaces_url": "/v2/users/uaa-id-358/spaces",
    "organizations_url": "/v2/users/uaa-id-358/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-358/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-358/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-358/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-358/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-358/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 134c534a-4ef1-492d-853c-bee344eb2c27
Content-Length: 845
X-Content-Type-Options: nosniff