Organizations API

Associate Billing Manager with the Organization by Username

PUT v2/organizations/:guid/billing_managers

Request

Route

PUT v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/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
origin The UAA origin that the user is registered with
  • ldap
{
  "username": "[email protected]"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.PmHwz5cz7CIYf1Hs5M8oNjwdk8RSgeF_fq1H4ucHA94
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/billing_managers" -d '{
  "username": "[email protected]"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.PmHwz5cz7CIYf1Hs5M8oNjwdk8RSgeF_fq1H4ucHA94" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f",
    "url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f",
    "created_at": "2016-06-08T16:41:34Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1725",
    "billing_enabled": false,
    "quota_definition_guid": "232e6e89-30d2-43e6-b2ec-a2068e43c929",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/232e6e89-30d2-43e6-b2ec-a2068e43c929",
    "spaces_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/spaces",
    "domains_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/domains",
    "private_domains_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/private_domains",
    "users_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/users",
    "managers_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/managers",
    "billing_managers_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/billing_managers",
    "auditors_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/auditors",
    "app_events_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/app_events",
    "space_quota_definitions_url": "/v2/organizations/e27e8ab6-0f64-4ea0-aa5c-273b04bdfe1f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1386ed4f-8d58-4c9f-94a1-8b7a31e6645b
Content-Length: 1300
X-Content-Type-Options: nosniff