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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/users/uaa-id-84/billing_managed_organizations/dc7a6ef4-3969-44f4-bc9c-cd3e5dc272a4

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-84/billing_managed_organizations/dc7a6ef4-3969-44f4-bc9c-cd3e5dc272a4" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMzfQ.g0tJN0bVm2kQfpBQfaM3xAclFfKV7gUURRjIdQHP9tE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aabd8619-339a-4347-8837-01b917a37b9e
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-84",
    "url": "/v2/users/uaa-id-84",
    "created_at": "2014-11-05T01:02:13+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "bc17871c-051d-4372-a0c8-547b8d85b343",
    "default_space_url": "/v2/spaces/bc17871c-051d-4372-a0c8-547b8d85b343",
    "spaces_url": "/v2/users/uaa-id-84/spaces",
    "organizations_url": "/v2/users/uaa-id-84/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-84/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-84/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-84/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-84/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-84/audited_spaces"
  }
}