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/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.nQ9_p4PABeFtEh8jTtrnZE74QcR005ulMduXP7POfJw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.nQ9_p4PABeFtEh8jTtrnZE74QcR005ulMduXP7POfJw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "80c34c6b-0e48-4a3c-abc9-1398cfabe55e",
    "url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e",
    "created_at": "2016-04-16T01:23:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-62",
    "billing_enabled": false,
    "quota_definition_guid": "4ad62a81-ebd9-4178-baba-c5d56dd59ba2",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/4ad62a81-ebd9-4178-baba-c5d56dd59ba2",
    "spaces_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/spaces",
    "domains_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/domains",
    "private_domains_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/private_domains",
    "users_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/users",
    "managers_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/managers",
    "billing_managers_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/billing_managers",
    "auditors_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/auditors",
    "app_events_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/app_events",
    "space_quota_definitions_url": "/v2/organizations/80c34c6b-0e48-4a3c-abc9-1398cfabe55e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e028a119-851d-469d-9d58-3d6e2fdc9a94
Content-Length: 1298
X-Content-Type-Options: nosniff