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/12d9b3ae-6796-496d-8438-718c0ffd7431/billing_managers/uaa-id-135

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/billing_managers/uaa-id-135" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtMTAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjV9.EzF7Woa9lkLaTG3dvM7NDt_qi0yUxXY2HrTyZTWZ5os" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "12d9b3ae-6796-496d-8438-718c0ffd7431",
    "url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431",
    "created_at": "2015-03-03T00:51:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1083",
    "billing_enabled": false,
    "quota_definition_guid": "2a071eb7-ce6f-4418-9794-0231713e72da",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2a071eb7-ce6f-4418-9794-0231713e72da",
    "spaces_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/spaces",
    "domains_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/domains",
    "private_domains_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/private_domains",
    "users_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/users",
    "managers_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/managers",
    "billing_managers_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/billing_managers",
    "auditors_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/auditors",
    "app_events_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/app_events",
    "space_quota_definitions_url": "/v2/organizations/12d9b3ae-6796-496d-8438-718c0ffd7431/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b125b04a-9fc8-4091-93e1-6ef30b1c9d0b
Content-Length: 1300
X-Content-Type-Options: nosniff