Home
Version 3
Users API

Users API

Associate Billing Managed Organization with the User

PUT /v2/users/:guid/billing_managed_organizations/:billing_managed_organization_guid

Request

Route

PUT /v2/users/uaa-id-15/billing_managed_organizations/d901c024-1f98-4937-84ea-d12c15173e43

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-15/billing_managed_organizations/d901c024-1f98-4937-84ea-d12c15173e43" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC04QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODEwOTZ9.SuGv8yeq8iod8aakxaDuLkFzkioduo8j2ZEyuAHBwMk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-15",
    "url": "/v2/users/uaa-id-15",
    "created_at": "2015-06-04T00:04:56Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "20b2f321-8f71-4a60-8dea-2c925828ecd1",
    "default_space_url": "/v2/spaces/20b2f321-8f71-4a60-8dea-2c925828ecd1",
    "spaces_url": "/v2/users/uaa-id-15/spaces",
    "organizations_url": "/v2/users/uaa-id-15/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-15/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-15/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-15/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-15/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-15/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 71d06921-1a7b-40d1-88e6-629d8dc0e4c2
Content-Length: 836
X-Content-Type-Options: nosniff