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/a0a4822a-3d97-47b3-adf6-337a8aa24722/billing_managers/uaa-id-202

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/billing_managers/uaa-id-202" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.WEMQkhbJycqZha4X0mzW71yBZVhIgmDlnKOAxZoCAaU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a0a4822a-3d97-47b3-adf6-337a8aa24722",
    "url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722",
    "created_at": "2016-06-08T16:41:34Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1721",
    "billing_enabled": false,
    "quota_definition_guid": "9137fdad-35f2-4f17-970a-969beb5aec5c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9137fdad-35f2-4f17-970a-969beb5aec5c",
    "spaces_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/spaces",
    "domains_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/domains",
    "private_domains_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/private_domains",
    "users_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/users",
    "managers_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/managers",
    "billing_managers_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/billing_managers",
    "auditors_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/auditors",
    "app_events_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/app_events",
    "space_quota_definitions_url": "/v2/organizations/a0a4822a-3d97-47b3-adf6-337a8aa24722/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2bc1d22e-e8ad-40b5-a047-4c24b9cae761
Content-Length: 1300
X-Content-Type-Options: nosniff