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/5e941e24-0e05-416b-b9f6-71a545d0a2ef/billing_managers/uaa-id-329

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.arMpFx3AF-dLcsWvUhlzumrq1hab_oFc22auaKsLuhY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/billing_managers/uaa-id-329" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.arMpFx3AF-dLcsWvUhlzumrq1hab_oFc22auaKsLuhY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5e941e24-0e05-416b-b9f6-71a545d0a2ef",
    "url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef",
    "created_at": "2015-07-06T23:23:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2143",
    "billing_enabled": false,
    "quota_definition_guid": "ff7bdf5f-0df2-427c-a240-e6e1becd9986",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ff7bdf5f-0df2-427c-a240-e6e1becd9986",
    "spaces_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/spaces",
    "domains_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/domains",
    "private_domains_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/private_domains",
    "users_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/users",
    "managers_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/managers",
    "billing_managers_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/billing_managers",
    "auditors_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/auditors",
    "app_events_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/app_events",
    "space_quota_definitions_url": "/v2/organizations/5e941e24-0e05-416b-b9f6-71a545d0a2ef/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cfbad37a-88ce-44c5-9785-022ab21c8a10
Content-Length: 1300
X-Content-Type-Options: nosniff