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/e7161e05-27f7-4680-84ea-097c35119abc/billing_managers/uaa-id-17

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/billing_managers/uaa-id-17" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU1fQ.xSohnEwy3759Sd1Dz9Gv-PrtV4zSYPRgIJeksk4n3JM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e7161e05-27f7-4680-84ea-097c35119abc",
    "url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc",
    "created_at": "2015-03-18T22:52:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-52",
    "billing_enabled": false,
    "quota_definition_guid": "de235cf7-63b5-4859-a04c-85f65033c321",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/de235cf7-63b5-4859-a04c-85f65033c321",
    "spaces_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/spaces",
    "domains_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/domains",
    "private_domains_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/private_domains",
    "users_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/users",
    "managers_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/managers",
    "billing_managers_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/billing_managers",
    "auditors_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/auditors",
    "app_events_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/app_events",
    "space_quota_definitions_url": "/v2/organizations/e7161e05-27f7-4680-84ea-097c35119abc/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3d3b7769-cef3-4c6c-916d-cc15c3adfe57
Content-Length: 1298
X-Content-Type-Options: nosniff