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/a15dc024-f458-48a3-8dcf-282c185de81b/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDB9.P9Stj7lI7PCwl1Jhm0v1xtt-LHgaGhmJGfgteAg5XGQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDB9.P9Stj7lI7PCwl1Jhm0v1xtt-LHgaGhmJGfgteAg5XGQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a15dc024-f458-48a3-8dcf-282c185de81b",
    "url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b",
    "created_at": "2016-02-19T02:04:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2269",
    "billing_enabled": false,
    "quota_definition_guid": "53d5c093-47c9-43bb-bac0-555b338deb64",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/53d5c093-47c9-43bb-bac0-555b338deb64",
    "spaces_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/spaces",
    "domains_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/domains",
    "private_domains_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/private_domains",
    "users_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/users",
    "managers_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/managers",
    "billing_managers_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/billing_managers",
    "auditors_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/auditors",
    "app_events_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/app_events",
    "space_quota_definitions_url": "/v2/organizations/a15dc024-f458-48a3-8dcf-282c185de81b/space_quota_definitions"
  }
}

Headers

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