Home
Version 3
Organizations API

Organizations API

Associate Billing Manager with the Organization

PUT /v2/organizations/:guid/billing_managers/:billing_manager_guid

Request

Route

PUT /v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/billing_managers/uaa-id-332

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMyIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.c3bGCkTu_1TR8lxfKwmWyxay7feZotM5-zQQspW93Nk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/billing_managers/uaa-id-332" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMyIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.c3bGCkTu_1TR8lxfKwmWyxay7feZotM5-zQQspW93Nk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c3fd8d44-bc73-40f6-b454-7bc7ec902730",
    "url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730",
    "created_at": "2015-04-15T00:55:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1986",
    "billing_enabled": false,
    "quota_definition_guid": "20663b73-5b81-412c-91e7-2d0401b5b406",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/20663b73-5b81-412c-91e7-2d0401b5b406",
    "spaces_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/spaces",
    "domains_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/domains",
    "private_domains_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/private_domains",
    "users_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/users",
    "managers_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/managers",
    "billing_managers_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/billing_managers",
    "auditors_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/auditors",
    "app_events_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/app_events",
    "space_quota_definitions_url": "/v2/organizations/c3fd8d44-bc73-40f6-b454-7bc7ec902730/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc6d2d34-fb5d-4f8f-a484-08724d111396
Content-Length: 1300
X-Content-Type-Options: nosniff