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/86bed006-9d56-4417-941b-9e0f25e9042a/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkwfQ.nbxZF6fYE9TXNDiC-eF_slsNDNWJzTrDk1ZNlNHBeh0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/billing_managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkwfQ.nbxZF6fYE9TXNDiC-eF_slsNDNWJzTrDk1ZNlNHBeh0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "86bed006-9d56-4417-941b-9e0f25e9042a",
    "url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a",
    "created_at": "2016-04-22T19:33:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-55",
    "billing_enabled": false,
    "quota_definition_guid": "063b3f2c-e832-407b-9fbd-76d716d70735",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/063b3f2c-e832-407b-9fbd-76d716d70735",
    "spaces_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/spaces",
    "domains_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/domains",
    "private_domains_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/private_domains",
    "users_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/users",
    "managers_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/managers",
    "billing_managers_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/billing_managers",
    "auditors_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/auditors",
    "app_events_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/app_events",
    "space_quota_definitions_url": "/v2/organizations/86bed006-9d56-4417-941b-9e0f25e9042a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f8d66c79-3cf5-426a-b7d1-a632c6fe7a40
Content-Length: 1298
X-Content-Type-Options: nosniff