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/129eaede-112d-4fe0-a727-7c85507dde1d/billing_managers/uaa-id-124

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/billing_managers/uaa-id-124" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtOTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwMn0.j2zuA65YneuBnt1wMOg8pu_sL9wtOXe6b-b6tQ3VsHU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "129eaede-112d-4fe0-a727-7c85507dde1d",
    "url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d",
    "created_at": "2015-04-07T19:11:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-326",
    "billing_enabled": false,
    "quota_definition_guid": "3cd469d3-ddad-49a5-979d-cc1b444ff268",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3cd469d3-ddad-49a5-979d-cc1b444ff268",
    "spaces_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/spaces",
    "domains_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/domains",
    "private_domains_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/private_domains",
    "users_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/users",
    "managers_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/managers",
    "billing_managers_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/billing_managers",
    "auditors_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/auditors",
    "app_events_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/app_events",
    "space_quota_definitions_url": "/v2/organizations/129eaede-112d-4fe0-a727-7c85507dde1d/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 41fd7709-16d3-4fe6-9f42-4b895cc5e6e6
Content-Length: 1299
X-Content-Type-Options: nosniff