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/32ad4951-7789-4618-bdfe-41f61fb7a9c3/billing_managers/uaa-id-50

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/billing_managers/uaa-id-50" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgxfQ.ugNGmKG_49weDvm87Vh9bNPU_KWfRWDJHyhLLpYukMI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "32ad4951-7789-4618-bdfe-41f61fb7a9c3",
    "url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3",
    "created_at": "2015-05-21T01:03:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-219",
    "billing_enabled": false,
    "quota_definition_guid": "334f1b0f-c9bb-4c4f-8c9b-53b905e85df5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/334f1b0f-c9bb-4c4f-8c9b-53b905e85df5",
    "spaces_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/spaces",
    "domains_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/domains",
    "private_domains_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/private_domains",
    "users_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/users",
    "managers_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/managers",
    "billing_managers_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/billing_managers",
    "auditors_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/auditors",
    "app_events_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/app_events",
    "space_quota_definitions_url": "/v2/organizations/32ad4951-7789-4618-bdfe-41f61fb7a9c3/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a4ff9ad6-706e-4a4c-8855-de2c8fade7f9
Content-Length: 1299
X-Content-Type-Options: nosniff