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

Route

PUT /v2/users/uaa-id-292/billing_managed_organizations/1f019f5e-a003-4b96-bfe1-a5d260260638

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-292/billing_managed_organizations/1f019f5e-a003-4b96-bfe1-a5d260260638" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.Uq2_K5lWZQD63HUENL87OnFXK869LW3iOx8gzerzyKk" \
	-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: 19e49bc8-7451-4e77-9b92-2e9f1f14baa2
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-292",
    "url": "/v2/users/uaa-id-292",
    "created_at": "2015-02-13T22:35:01Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7fafff7b-6b5e-4a39-aeab-9b941b625608",
    "default_space_url": "/v2/spaces/7fafff7b-6b5e-4a39-aeab-9b941b625608",
    "spaces_url": "/v2/users/uaa-id-292/spaces",
    "organizations_url": "/v2/users/uaa-id-292/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-292/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-292/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-292/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-292/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-292/audited_spaces"
  }
}