Home
Version 3
Organizations API

Organizations API

Disassociate Billing Manager with the Organization by Username

DELETE v2/organizations/:guid/billing_managers

Request

Route

DELETE v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/billing_managers

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "billing_manager@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.gA-8fh55l87pg1TIw8ZaRpP4aqZmcVn-ALt0GevHjJQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/billing_managers" -d '{
  "username": "billing_manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.gA-8fh55l87pg1TIw8ZaRpP4aqZmcVn-ALt0GevHjJQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8ba7cac9-662e-4abc-ac12-ad323620ece0",
    "url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0",
    "created_at": "2015-11-03T00:53:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-839",
    "billing_enabled": false,
    "quota_definition_guid": "0d80d876-2fb4-4eec-b824-01890f99510f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0d80d876-2fb4-4eec-b824-01890f99510f",
    "spaces_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/spaces",
    "domains_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/domains",
    "private_domains_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/private_domains",
    "users_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/users",
    "managers_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/managers",
    "billing_managers_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/billing_managers",
    "auditors_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/auditors",
    "app_events_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/app_events",
    "space_quota_definitions_url": "/v2/organizations/8ba7cac9-662e-4abc-ac12-ad323620ece0/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 63bc1648-92a9-4646-a088-9c98b042649d
Content-Length: 1299
X-Content-Type-Options: nosniff