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/432aef2e-5437-45b6-b201-0816a82f1689/billing_managers/uaa-id-55

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/billing_managers/uaa-id-55" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC01MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.H6QL16f4aye8PtrVpXm1Nc3meuSbN1e8NBTtjHgwIMU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "432aef2e-5437-45b6-b201-0816a82f1689",
    "url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689",
    "created_at": "2016-04-06T00:17:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-201",
    "billing_enabled": false,
    "quota_definition_guid": "95b3b6ff-f202-4699-9f7a-1d7cddab9c4f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/95b3b6ff-f202-4699-9f7a-1d7cddab9c4f",
    "spaces_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/spaces",
    "domains_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/domains",
    "private_domains_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/private_domains",
    "users_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/users",
    "managers_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/managers",
    "billing_managers_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/billing_managers",
    "auditors_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/auditors",
    "app_events_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/app_events",
    "space_quota_definitions_url": "/v2/organizations/432aef2e-5437-45b6-b201-0816a82f1689/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff