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/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.MHOT8VJly8KidF0WOB_Zp6_IhuR3qiJXwBmt_pSFfdU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/billing_managers" -d '{
  "username": "billing_manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.MHOT8VJly8KidF0WOB_Zp6_IhuR3qiJXwBmt_pSFfdU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec",
    "url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec",
    "created_at": "2015-10-13T17:31:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-265",
    "billing_enabled": false,
    "quota_definition_guid": "03810a2f-ce58-4166-ac2e-1bc2126ad988",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/03810a2f-ce58-4166-ac2e-1bc2126ad988",
    "spaces_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/spaces",
    "domains_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/domains",
    "private_domains_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/private_domains",
    "users_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/users",
    "managers_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/managers",
    "billing_managers_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/billing_managers",
    "auditors_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/auditors",
    "app_events_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/app_events",
    "space_quota_definitions_url": "/v2/organizations/e39f90e8-a545-4bb5-9f5f-a8ad2fb0bbec/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cf0efd65-2268-4cd2-9f50-972f9e6fe231
Content-Length: 1299
X-Content-Type-Options: nosniff