Home
Version 3
Organizations API

Organizations API

Associate Billing Manager with the Organization by Username (experimental)

PUT v2/organizations/:guid/billing_managers

Request

Route

PUT v2/organizations/f8d37936-e739-4160-9478-741a082e3397/billing_managers

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
billing_manager_guid The guid of the user
{
  "username": "user@example.com"
}

Headers

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

cURL

curl "https://api.[your-domain.com]v2/organizations/f8d37936-e739-4160-9478-741a082e3397/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.YT_mlK4hcc9_vVaB4aYxcnxcltrWaIG_8OkbncYrEew" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f8d37936-e739-4160-9478-741a082e3397",
    "url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397",
    "created_at": "2015-09-11T18:38:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-301",
    "billing_enabled": false,
    "quota_definition_guid": "114df4b1-3fea-496d-a0e9-3495328a29db",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/114df4b1-3fea-496d-a0e9-3495328a29db",
    "spaces_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/spaces",
    "domains_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/domains",
    "private_domains_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/private_domains",
    "users_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/users",
    "managers_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/managers",
    "billing_managers_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/billing_managers",
    "auditors_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/auditors",
    "app_events_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/app_events",
    "space_quota_definitions_url": "/v2/organizations/f8d37936-e739-4160-9478-741a082e3397/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 484c060a-4dfd-4f5f-8be0-090841449538
Content-Length: 1299
X-Content-Type-Options: nosniff