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/aee605b2-716b-4632-924f-29c5917ba096/billing_managers/uaa-id-139

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDN9.0qnqcjTchWnvqlReDP76qaHYpXe9MFGRqqqi8UV-3qQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/billing_managers/uaa-id-139" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDN9.0qnqcjTchWnvqlReDP76qaHYpXe9MFGRqqqi8UV-3qQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "aee605b2-716b-4632-924f-29c5917ba096",
    "url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096",
    "created_at": "2015-03-05T19:15:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-457",
    "billing_enabled": false,
    "quota_definition_guid": "d9301e2e-d610-4575-aae6-4e750d854e0f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d9301e2e-d610-4575-aae6-4e750d854e0f",
    "spaces_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/spaces",
    "domains_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/domains",
    "private_domains_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/private_domains",
    "users_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/users",
    "managers_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/managers",
    "billing_managers_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/billing_managers",
    "auditors_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/auditors",
    "app_events_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/app_events",
    "space_quota_definitions_url": "/v2/organizations/aee605b2-716b-4632-924f-29c5917ba096/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 38484185-8498-4913-9e01-96b025501e81
Content-Length: 1299
X-Content-Type-Options: nosniff