Home
Version 3
Organizations API

Organizations API

Associate Billing Manager with the Organization

PUT /v2/organizations/:guid/billing_managers/:billing_manager_guid

Request

Route

PUT /v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/billing_managers/uaa-id-49

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
billing_manager_guid The guid of the user

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.Coqi_KxEg0UIumqVAPUh9VBeMBIenhQqlWAL8zcutUg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/billing_managers/uaa-id-49" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.Coqi_KxEg0UIumqVAPUh9VBeMBIenhQqlWAL8zcutUg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "44cc4aae-62ab-4052-996d-e7fcb360198a",
    "url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a",
    "created_at": "2016-04-16T01:23:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-66",
    "billing_enabled": false,
    "quota_definition_guid": "f0c1b408-e889-4db7-aa9f-f3c9d6538364",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f0c1b408-e889-4db7-aa9f-f3c9d6538364",
    "spaces_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/spaces",
    "domains_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/domains",
    "private_domains_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/private_domains",
    "users_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/users",
    "managers_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/managers",
    "billing_managers_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/billing_managers",
    "auditors_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/auditors",
    "app_events_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/app_events",
    "space_quota_definitions_url": "/v2/organizations/44cc4aae-62ab-4052-996d-e7fcb360198a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ece59f6e-699b-46aa-af54-cde70b0dc49e
Content-Length: 1298
X-Content-Type-Options: nosniff