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/e440e023-8793-42a7-9b35-33d35827e014/billing_managers/uaa-id-357

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjF9.5Ip-vKuxEV3nB7ctv_ymH4EdaAqFsf5pSbv2xuXwHJI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/billing_managers/uaa-id-357" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjF9.5Ip-vKuxEV3nB7ctv_ymH4EdaAqFsf5pSbv2xuXwHJI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e440e023-8793-42a7-9b35-33d35827e014",
    "url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014",
    "created_at": "2015-06-04T00:05:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2170",
    "billing_enabled": false,
    "quota_definition_guid": "fe42ba79-04f4-4e71-b19f-5eb334d7a46e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fe42ba79-04f4-4e71-b19f-5eb334d7a46e",
    "spaces_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/spaces",
    "domains_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/domains",
    "private_domains_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/private_domains",
    "users_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/users",
    "managers_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/managers",
    "billing_managers_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/billing_managers",
    "auditors_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/auditors",
    "app_events_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/app_events",
    "space_quota_definitions_url": "/v2/organizations/e440e023-8793-42a7-9b35-33d35827e014/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bc44673b-142a-4d38-9187-b625c0b95593
Content-Length: 1300
X-Content-Type-Options: nosniff