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-358/billing_managed_organizations/5082ba00-cf77-4366-9120-df70a4541a74

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.-XHHhpod34zb9b-uw6lESaLDzfHpEWhaIxoSsZ9tNfQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-358/billing_managed_organizations/5082ba00-cf77-4366-9120-df70a4541a74" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.-XHHhpod34zb9b-uw6lESaLDzfHpEWhaIxoSsZ9tNfQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-358",
    "url": "/v2/users/uaa-id-358",
    "created_at": "2015-05-07T23:37:26Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "d33794da-67c0-4929-be20-ffb4459a534c",
    "default_space_url": "/v2/spaces/d33794da-67c0-4929-be20-ffb4459a534c",
    "spaces_url": "/v2/users/uaa-id-358/spaces",
    "organizations_url": "/v2/users/uaa-id-358/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-358/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-358/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-358/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-358/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-358/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3dc954f3-7dc1-4adb-9416-95a96029b1ba
Content-Length: 845
X-Content-Type-Options: nosniff