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/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/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.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.Gjhvp4R4lsx-2dO7VooFQJSFH8cxYsxW46m-Iya_sKQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/billing_managers/uaa-id-70" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.Gjhvp4R4lsx-2dO7VooFQJSFH8cxYsxW46m-Iya_sKQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8c2c1c52-7469-4714-a5f1-1b43b01c28fd",
    "url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd",
    "created_at": "2015-08-06T00:36:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-356",
    "billing_enabled": false,
    "quota_definition_guid": "220db91e-3ca9-4d47-90fa-adca4d4bb319",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/220db91e-3ca9-4d47-90fa-adca4d4bb319",
    "spaces_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/spaces",
    "domains_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/domains",
    "private_domains_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/private_domains",
    "users_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/users",
    "managers_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/managers",
    "billing_managers_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/billing_managers",
    "auditors_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/auditors",
    "app_events_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/app_events",
    "space_quota_definitions_url": "/v2/organizations/8c2c1c52-7469-4714-a5f1-1b43b01c28fd/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1072321c-663b-445f-b340-a391b25022e0
Content-Length: 1299
X-Content-Type-Options: nosniff