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/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMCIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.DBuYnXiGs5ZboF5HotPr5EtCEAdDbKSquT2bzmnZDLQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/billing_managers" -d '{
  "username": "billing_manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMCIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.DBuYnXiGs5ZboF5HotPr5EtCEAdDbKSquT2bzmnZDLQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "75ef53aa-5f9d-4445-8433-7fbe18e08b4e",
    "url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e",
    "created_at": "2015-10-15T23:52:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2419",
    "billing_enabled": false,
    "quota_definition_guid": "4c70567a-7ec2-4587-b79f-0f6bb2e9d4ea",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/4c70567a-7ec2-4587-b79f-0f6bb2e9d4ea",
    "spaces_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/spaces",
    "domains_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/domains",
    "private_domains_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/private_domains",
    "users_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/users",
    "managers_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/managers",
    "billing_managers_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/billing_managers",
    "auditors_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/auditors",
    "app_events_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/app_events",
    "space_quota_definitions_url": "/v2/organizations/75ef53aa-5f9d-4445-8433-7fbe18e08b4e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9df7be46-1868-418d-ae0e-3b8e4408047c
Content-Length: 1300
X-Content-Type-Options: nosniff