Home
Version 3
Organizations API

Organizations API

Associate Billing Manager with the Organization by Username

PUT v2/organizations/:guid/billing_managers

Request

Route

PUT v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/billing_managers

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.B0VnLnlaZ8HxbBK10sugg4DuH6Lcb5tyNmjefwjPpl8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.B0VnLnlaZ8HxbBK10sugg4DuH6Lcb5tyNmjefwjPpl8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bc8b13a6-0ff0-48c4-b0c5-723eff09b169",
    "url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169",
    "created_at": "2016-05-12T00:45:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-83",
    "billing_enabled": false,
    "quota_definition_guid": "f6e291f2-515c-4fa2-ab81-2e032dfd4706",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f6e291f2-515c-4fa2-ab81-2e032dfd4706",
    "spaces_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/spaces",
    "domains_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/domains",
    "private_domains_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/private_domains",
    "users_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/users",
    "managers_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/managers",
    "billing_managers_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/billing_managers",
    "auditors_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/auditors",
    "app_events_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/app_events",
    "space_quota_definitions_url": "/v2/organizations/bc8b13a6-0ff0-48c4-b0c5-723eff09b169/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: dcd3ddde-bb12-4a53-9756-4c0c7d310cd3
Content-Length: 1298
X-Content-Type-Options: nosniff