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/c4996cd5-8673-489c-8f00-925b98e42d95/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.jfAwy16thb3o_p4UlCWJRRU8Wufb0B_UQuYJzw7SnGM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.jfAwy16thb3o_p4UlCWJRRU8Wufb0B_UQuYJzw7SnGM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c4996cd5-8673-489c-8f00-925b98e42d95",
    "url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95",
    "created_at": "2016-04-06T00:17:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-195",
    "billing_enabled": false,
    "quota_definition_guid": "eeb83369-c413-4075-b916-f3b0166528e8",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/eeb83369-c413-4075-b916-f3b0166528e8",
    "spaces_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/spaces",
    "domains_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/domains",
    "private_domains_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/private_domains",
    "users_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/users",
    "managers_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/managers",
    "billing_managers_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/billing_managers",
    "auditors_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/auditors",
    "app_events_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/app_events",
    "space_quota_definitions_url": "/v2/organizations/c4996cd5-8673-489c-8f00-925b98e42d95/space_quota_definitions"
  }
}

Headers

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