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/f685f5ba-0960-4c61-af0b-4a39b0a09be7/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.mQUJz2R72ot5ycZxJVOSK6OBN9fu0c6IIWzAHhT_SdU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.mQUJz2R72ot5ycZxJVOSK6OBN9fu0c6IIWzAHhT_SdU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f685f5ba-0960-4c61-af0b-4a39b0a09be7",
    "url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7",
    "created_at": "2015-11-03T00:53:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-837",
    "billing_enabled": false,
    "quota_definition_guid": "74fd90a6-d6c0-40fa-b4bd-4a327b5e4872",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/74fd90a6-d6c0-40fa-b4bd-4a327b5e4872",
    "spaces_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/spaces",
    "domains_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/domains",
    "private_domains_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/private_domains",
    "users_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/users",
    "managers_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/managers",
    "billing_managers_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/billing_managers",
    "auditors_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/auditors",
    "app_events_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/app_events",
    "space_quota_definitions_url": "/v2/organizations/f685f5ba-0960-4c61-af0b-4a39b0a09be7/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0c2b4c4e-6c2f-4142-a60d-1cd24deb0eb6
Content-Length: 1299
X-Content-Type-Options: nosniff