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/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMiIsImVtYWlsIjoiZW1haWwtMzA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.PTHrOnA3mbf4C7rR_vVPr2OMiuiiRkyFoVkrn9XvdPE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMiIsImVtYWlsIjoiZW1haWwtMzA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.PTHrOnA3mbf4C7rR_vVPr2OMiuiiRkyFoVkrn9XvdPE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5a2f8bf8-d3c9-431c-bd4f-22ba1796b889",
    "url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889",
    "created_at": "2015-10-15T23:52:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2421",
    "billing_enabled": false,
    "quota_definition_guid": "e1283c33-1655-4ce7-8df1-11292e71b882",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e1283c33-1655-4ce7-8df1-11292e71b882",
    "spaces_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/spaces",
    "domains_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/domains",
    "private_domains_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/private_domains",
    "users_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/users",
    "managers_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/managers",
    "billing_managers_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/billing_managers",
    "auditors_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/auditors",
    "app_events_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/app_events",
    "space_quota_definitions_url": "/v2/organizations/5a2f8bf8-d3c9-431c-bd4f-22ba1796b889/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: edcc7171-e6d5-4c56-9eb8-8e9d8a36f458
Content-Length: 1300
X-Content-Type-Options: nosniff