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/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/billing_managers/uaa-id-216

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/billing_managers/uaa-id-216" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.RtSk56ng8QGTGXancS3G-v4DhimK3YY_ZUNefJx2MNA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014",
    "url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-854",
    "billing_enabled": false,
    "quota_definition_guid": "99d81103-1cc0-49e4-941a-650f9ba77553",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/99d81103-1cc0-49e4-941a-650f9ba77553",
    "spaces_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/spaces",
    "domains_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/domains",
    "private_domains_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/private_domains",
    "users_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/users",
    "managers_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/managers",
    "billing_managers_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/billing_managers",
    "auditors_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/auditors",
    "app_events_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/app_events",
    "space_quota_definitions_url": "/v2/organizations/f6f136c5-1c6b-4fe9-bf3f-68bddf5d5014/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 83bdd2bf-fc4b-45d1-87f0-c2a024e6fb4a
Content-Length: 1299
X-Content-Type-Options: nosniff