Home
Version 3
Organizations API

Organizations API

Associate Billing Manager with the Organization

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDV9.8a7WPym_yToUyLBRl5SawMwOe_-LOhvS74i_3_SFqA4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/billing_managers/uaa-id-182

cURL

curl "https://api.[your-domain.com]/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/billing_managers/uaa-id-182" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDV9.8a7WPym_yToUyLBRl5SawMwOe_-LOhvS74i_3_SFqA4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6976b74a-b86e-47d2-9b88-dbc7f33b1447
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "89e5b4e5-d014-4b29-950a-b84efe715839",
    "url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839",
    "created_at": "2014-11-13T23:38:25+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-725",
    "billing_enabled": false,
    "quota_definition_guid": "04116e12-4588-43ab-bb76-b40a9d8ec378",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/04116e12-4588-43ab-bb76-b40a9d8ec378",
    "spaces_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/spaces",
    "domains_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/domains",
    "private_domains_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/private_domains",
    "users_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/users",
    "managers_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/managers",
    "billing_managers_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/billing_managers",
    "auditors_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/auditors",
    "app_events_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/app_events",
    "space_quota_definitions_url": "/v2/organizations/89e5b4e5-d014-4b29-950a-b84efe715839/space_quota_definitions"
  }
}