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-362/billing_managed_organizations/72eafed3-414f-4db7-a02e-9d7c7ef3531f

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-362/billing_managed_organizations/72eafed3-414f-4db7-a02e-9d7c7ef3531f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjZ9.R_GqD7I4MROy3i5mqbJsbOZ_TW5yI13P7RtItRUHtBc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-362",
    "url": "/v2/users/uaa-id-362",
    "created_at": "2015-05-15T16:53:46Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "52b42c2c-3ac1-4557-b68a-8d40c330c2e0",
    "default_space_url": "/v2/spaces/52b42c2c-3ac1-4557-b68a-8d40c330c2e0",
    "spaces_url": "/v2/users/uaa-id-362/spaces",
    "organizations_url": "/v2/users/uaa-id-362/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-362/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-362/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-362/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-362/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-362/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ad3c68fd-2b8a-4995-b914-ebde6dca7228
Content-Length: 845
X-Content-Type-Options: nosniff