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/93ac9830-fc44-4573-b085-44b399760ab7/billing_managers/uaa-id-379

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.eBo4vtoQ6eJf0KDd3EbIVW6uOfljT7AUO1yLCmaQ-Ok
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/billing_managers/uaa-id-379" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.eBo4vtoQ6eJf0KDd3EbIVW6uOfljT7AUO1yLCmaQ-Ok" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "93ac9830-fc44-4573-b085-44b399760ab7",
    "url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2180",
    "billing_enabled": false,
    "quota_definition_guid": "96ae0597-1074-4194-9b6f-1dbabd25bae4",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/96ae0597-1074-4194-9b6f-1dbabd25bae4",
    "spaces_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/spaces",
    "domains_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/domains",
    "private_domains_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/private_domains",
    "users_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/users",
    "managers_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/managers",
    "billing_managers_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/billing_managers",
    "auditors_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/auditors",
    "app_events_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/app_events",
    "space_quota_definitions_url": "/v2/organizations/93ac9830-fc44-4573-b085-44b399760ab7/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f22f08c9-2720-4e36-9a51-0d9d4c687438
Content-Length: 1300
X-Content-Type-Options: nosniff