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/9efe59db-3e18-43cb-9414-68a424726fd6/billing_managers/uaa-id-70

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
billing_manager_guid The guid of the user

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.1r8p65_gTcmOoXfZJfCYpnN2oIfLc8azs1nlwjTwnUg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/billing_managers/uaa-id-70" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.1r8p65_gTcmOoXfZJfCYpnN2oIfLc8azs1nlwjTwnUg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9efe59db-3e18-43cb-9414-68a424726fd6",
    "url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6",
    "created_at": "2016-05-12T00:45:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-87",
    "billing_enabled": false,
    "quota_definition_guid": "e149f7ff-031b-4968-9f70-9ab98a312e35",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e149f7ff-031b-4968-9f70-9ab98a312e35",
    "spaces_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/spaces",
    "domains_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/domains",
    "private_domains_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/private_domains",
    "users_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/users",
    "managers_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/managers",
    "billing_managers_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/billing_managers",
    "auditors_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/auditors",
    "app_events_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/app_events",
    "space_quota_definitions_url": "/v2/organizations/9efe59db-3e18-43cb-9414-68a424726fd6/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc3f9063-0dee-4e9b-9b27-4e05762e30d9
Content-Length: 1298
X-Content-Type-Options: nosniff