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/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.c808_uuAHJ2R7XaBBFNXW5-WHA8H26oYa9WjVbBAGvQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/billing_managers" -d '{
  "username": "billing_manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.c808_uuAHJ2R7XaBBFNXW5-WHA8H26oYa9WjVbBAGvQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "441ab8e2-4c2c-4cac-b3b3-d063d90634f0",
    "url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0",
    "created_at": "2015-09-30T23:30:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1326",
    "billing_enabled": false,
    "quota_definition_guid": "ec8f11f5-4734-480f-bd03-2b48eb818df1",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ec8f11f5-4734-480f-bd03-2b48eb818df1",
    "spaces_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/spaces",
    "domains_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/domains",
    "private_domains_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/private_domains",
    "users_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/users",
    "managers_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/managers",
    "billing_managers_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/billing_managers",
    "auditors_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/auditors",
    "app_events_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/app_events",
    "space_quota_definitions_url": "/v2/organizations/441ab8e2-4c2c-4cac-b3b3-d063d90634f0/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: baf2e349-9dc8-422f-a6b9-0997b2bddacd
Content-Length: 1300
X-Content-Type-Options: nosniff