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-465/billing_managed_organizations/c6aa658a-824a-4f0b-86f5-13a7c0bcf556

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-465/billing_managed_organizations/c6aa658a-824a-4f0b-86f5-13a7c0bcf556" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2NiIsImVtYWlsIjoiZW1haWwtMzM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTZ9.RneEOEakdSit7PAvEN1bNT4yAywSW_n5yCb1Hujwgc8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-465",
    "url": "/v2/users/uaa-id-465",
    "created_at": "2016-03-14T22:30:56Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "668313c0-7ce4-498e-8e43-dada00489e91",
    "default_space_url": "/v2/spaces/668313c0-7ce4-498e-8e43-dada00489e91",
    "spaces_url": "/v2/users/uaa-id-465/spaces",
    "organizations_url": "/v2/users/uaa-id-465/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-465/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-465/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-465/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-465/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-465/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 845
X-Content-Type-Options: nosniff