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/4d0591e3-e860-4e46-984e-79ba4ac204bc/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.gX-EL4WosriOtgEagVKjmDXBE52UzssoQ02QHHvGuc0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/billing_managers" -d '{
  "username": "billing_manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.gX-EL4WosriOtgEagVKjmDXBE52UzssoQ02QHHvGuc0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "4d0591e3-e860-4e46-984e-79ba4ac204bc",
    "url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2186",
    "billing_enabled": false,
    "quota_definition_guid": "9e40d17a-3c9f-42f1-8930-4a67faa9d6db",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9e40d17a-3c9f-42f1-8930-4a67faa9d6db",
    "spaces_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/spaces",
    "domains_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/domains",
    "private_domains_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/private_domains",
    "users_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/users",
    "managers_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/managers",
    "billing_managers_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/billing_managers",
    "auditors_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/auditors",
    "app_events_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/app_events",
    "space_quota_definitions_url": "/v2/organizations/4d0591e3-e860-4e46-984e-79ba4ac204bc/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f31101c7-772e-4465-be57-ec7830adcdbb
Content-Length: 1300
X-Content-Type-Options: nosniff