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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.eT3xqcJAtxv8UfprKQZgpYBEZdJH-ZPaerMrcl4PMGs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/billing_managers/uaa-id-227

cURL

curl "https://api.[your-domain.com]/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/billing_managers/uaa-id-227" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.eT3xqcJAtxv8UfprKQZgpYBEZdJH-ZPaerMrcl4PMGs" \
	-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: 4ba60991-407c-49a9-b939-b99322f7e8f0
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "9963f0d6-fd6a-4c32-b7a0-93afb2fa0957",
    "url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957",
    "created_at": "2014-11-05T01:02:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-784",
    "billing_enabled": false,
    "quota_definition_guid": "6dbab9c6-6b35-472f-bb4c-ab04caa44f66",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6dbab9c6-6b35-472f-bb4c-ab04caa44f66",
    "spaces_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/spaces",
    "domains_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/domains",
    "private_domains_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/private_domains",
    "users_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/users",
    "managers_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/managers",
    "billing_managers_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/billing_managers",
    "auditors_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/auditors",
    "app_events_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/app_events",
    "space_quota_definitions_url": "/v2/organizations/9963f0d6-fd6a-4c32-b7a0-93afb2fa0957/space_quota_definitions"
  }
}