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-168/billing_managed_organizations/1be06217-00f7-4c7a-afe2-2b372a9f7d6e

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-168/billing_managed_organizations/1be06217-00f7-4c7a-afe2-2b372a9f7d6e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDN9.pZ3Cm5hGIHc59gfeRMJN5gRtxFYHCkqDqYcoT4dewrw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-168",
    "url": "/v2/users/uaa-id-168",
    "created_at": "2015-03-10T23:11:43Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "8711510e-2ad4-42a2-befe-f08e43088f21",
    "default_space_url": "/v2/spaces/8711510e-2ad4-42a2-befe-f08e43088f21",
    "spaces_url": "/v2/users/uaa-id-168/spaces",
    "organizations_url": "/v2/users/uaa-id-168/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-168/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-168/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-168/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-168/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-168/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba5bada6-d5a3-4a50-a4e5-6a796d427cfa
Content-Length: 845
X-Content-Type-Options: nosniff