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/03731d3e-d55f-425a-8411-119f9f3d1848/billing_managers/uaa-id-90

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/billing_managers/uaa-id-90" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkxIiwiZW1haWwiOiJlbWFpbC02MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4ODU1NjY3fQ.lBE7nAb9ypv1YnO19xe-CYkzPOOUUJQezHwipi7HsLE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "03731d3e-d55f-425a-8411-119f9f3d1848",
    "url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848",
    "created_at": "2016-03-17T21:41:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-326",
    "billing_enabled": false,
    "quota_definition_guid": "e9b58582-87d9-4ab2-b8d2-e754e32f47eb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e9b58582-87d9-4ab2-b8d2-e754e32f47eb",
    "spaces_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/spaces",
    "domains_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/domains",
    "private_domains_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/private_domains",
    "users_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/users",
    "managers_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/managers",
    "billing_managers_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/billing_managers",
    "auditors_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/auditors",
    "app_events_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/app_events",
    "space_quota_definitions_url": "/v2/organizations/03731d3e-d55f-425a-8411-119f9f3d1848/space_quota_definitions"
  }
}

Headers

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