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/7f11aa90-dd77-40d0-8b27-5974bbb91357/billing_managers/uaa-id-139

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.-BGD-nSZNva5kXhP30dPWUP8TdQexDF-Jn2JiN4M1J0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/billing_managers/uaa-id-139" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.-BGD-nSZNva5kXhP30dPWUP8TdQexDF-Jn2JiN4M1J0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7f11aa90-dd77-40d0-8b27-5974bbb91357",
    "url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357",
    "created_at": "2015-09-11T18:38:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-307",
    "billing_enabled": false,
    "quota_definition_guid": "c84bbcc8-eb0b-44bc-adf5-212f165e04e4",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c84bbcc8-eb0b-44bc-adf5-212f165e04e4",
    "spaces_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/spaces",
    "domains_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/domains",
    "private_domains_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/private_domains",
    "users_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/users",
    "managers_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/managers",
    "billing_managers_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/billing_managers",
    "auditors_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/auditors",
    "app_events_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/app_events",
    "space_quota_definitions_url": "/v2/organizations/7f11aa90-dd77-40d0-8b27-5974bbb91357/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ad3d308d-1f92-4443-9b95-e5b3ddb93f64
Content-Length: 1299
X-Content-Type-Options: nosniff