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-434/billing_managed_organizations/6c62bd3d-f73a-4681-91b3-1e0eb92765d2

Parameters

Name Description Valid Values Example Values
guid The guid of the User
billing_managed_organization_guid The guid of the billing managed organization

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-434/billing_managed_organizations/6c62bd3d-f73a-4681-91b3-1e0eb92765d2" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNSIsImVtYWlsIjoiZW1haWwtMzIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTl9.Gx_XOFecyzKi9LBvC0dmgIh3LorkpEkVXSFSXNBt4yY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-434",
    "url": "/v2/users/uaa-id-434",
    "created_at": "2015-11-03T00:54:19Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7e35afc6-0880-4766-a32c-688d9845b74c",
    "default_space_url": "/v2/spaces/7e35afc6-0880-4766-a32c-688d9845b74c",
    "spaces_url": "/v2/users/uaa-id-434/spaces",
    "organizations_url": "/v2/users/uaa-id-434/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-434/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-434/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-434/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-434/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-434/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f65b03c7-3737-4c36-89e8-b45bcf34515b
Content-Length: 845
X-Content-Type-Options: nosniff