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/30e17d0c-159e-49c3-b8c2-485275686cc4/billing_managers/uaa-id-146

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.27S0gxMD-1lcPvGgcnsybzFSHdmRIzYaJN_dC7azunY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/billing_managers/uaa-id-146" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.27S0gxMD-1lcPvGgcnsybzFSHdmRIzYaJN_dC7azunY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "30e17d0c-159e-49c3-b8c2-485275686cc4",
    "url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4",
    "created_at": "2015-05-07T23:37:12Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1191",
    "billing_enabled": false,
    "quota_definition_guid": "d7d90a33-d3ab-4913-88b5-9572dc01addb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d7d90a33-d3ab-4913-88b5-9572dc01addb",
    "spaces_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/spaces",
    "domains_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/domains",
    "private_domains_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/private_domains",
    "users_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/users",
    "managers_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/managers",
    "billing_managers_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/billing_managers",
    "auditors_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/auditors",
    "app_events_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/app_events",
    "space_quota_definitions_url": "/v2/organizations/30e17d0c-159e-49c3-b8c2-485275686cc4/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 094ed3a1-07ec-49cd-909a-4667584b4272
Content-Length: 1300
X-Content-Type-Options: nosniff