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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1N30.6psODuIvVEe6QyUf6p6u4kCk-ju4rilmjsTOH1jU334
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/billing_managers/uaa-id-99

cURL

curl "https://api.[your-domain.com]/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/billing_managers/uaa-id-99" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1N30.6psODuIvVEe6QyUf6p6u4kCk-ju4rilmjsTOH1jU334" \
	-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: 4a364ce0-ac3c-4fba-b8db-17b8563d18e0
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "853b6009-6c77-448a-a778-3eadce75fce0",
    "url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0",
    "created_at": "2014-11-24T19:32:37+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-495",
    "billing_enabled": false,
    "quota_definition_guid": "ae97e8d3-56a2-4244-bda2-ae8752e0f834",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ae97e8d3-56a2-4244-bda2-ae8752e0f834",
    "spaces_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/spaces",
    "domains_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/domains",
    "private_domains_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/private_domains",
    "users_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/users",
    "managers_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/managers",
    "billing_managers_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/billing_managers",
    "auditors_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/auditors",
    "app_events_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/app_events",
    "space_quota_definitions_url": "/v2/organizations/853b6009-6c77-448a-a778-3eadce75fce0/space_quota_definitions"
  }
}