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/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/billing_managers/uaa-id-237

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
billing_manager_guid The guid of the user

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.6jT8NOHI_CQDvHI_e1_QolsCnUcjd7ZJ3r8fS5GZWpA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/billing_managers/uaa-id-237" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.6jT8NOHI_CQDvHI_e1_QolsCnUcjd7ZJ3r8fS5GZWpA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ba0cf32f-3650-46e7-a3ba-7b714a2a302c",
    "url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c",
    "created_at": "2015-12-22T18:28:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-757",
    "billing_enabled": false,
    "quota_definition_guid": "ce30b6a5-6fbc-428b-b44f-5b6d2478bd7d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ce30b6a5-6fbc-428b-b44f-5b6d2478bd7d",
    "spaces_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/spaces",
    "domains_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/domains",
    "private_domains_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/private_domains",
    "users_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/users",
    "managers_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/managers",
    "billing_managers_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/billing_managers",
    "auditors_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/auditors",
    "app_events_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/app_events",
    "space_quota_definitions_url": "/v2/organizations/ba0cf32f-3650-46e7-a3ba-7b714a2a302c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff