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/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/billing_managers/uaa-id-66

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/billing_managers/uaa-id-66" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.NOiDBIqBxdJGc2Zc_I5wkZK1EQcgIvmStusVMEN0KpE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3f242f68-39fe-4d40-a404-fa8cfbb2a41a",
    "url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a",
    "created_at": "2015-03-20T18:27:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-187",
    "billing_enabled": false,
    "quota_definition_guid": "8699860e-fd41-4b99-97c8-cbf8f618a539",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8699860e-fd41-4b99-97c8-cbf8f618a539",
    "spaces_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/spaces",
    "domains_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/domains",
    "private_domains_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/private_domains",
    "users_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/users",
    "managers_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/managers",
    "billing_managers_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/billing_managers",
    "auditors_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/auditors",
    "app_events_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/app_events",
    "space_quota_definitions_url": "/v2/organizations/3f242f68-39fe-4d40-a404-fa8cfbb2a41a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fa0b304b-605b-4b4d-ac81-768a74aa32b6
Content-Length: 1299
X-Content-Type-Options: nosniff