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-170/billing_managed_organizations/6866084c-3d70-4007-bf48-df9a65f01024

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-170/billing_managed_organizations/6866084c-3d70-4007-bf48-df9a65f01024" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDN9.0ySQ9KHs_x8BkvRR6W7BrLIfiV2YKu0kGr8PLLbLqmM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-170",
    "url": "/v2/users/uaa-id-170",
    "created_at": "2015-03-10T23:11:43Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "2a191006-03fc-4e20-a5a9-f2585daa93a1",
    "default_space_url": "/v2/spaces/2a191006-03fc-4e20-a5a9-f2585daa93a1",
    "spaces_url": "/v2/users/uaa-id-170/spaces",
    "organizations_url": "/v2/users/uaa-id-170/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-170/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-170/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-170/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-170/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-170/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 499bffe6-c8a9-46bf-aeac-53aa89951bd8
Content-Length: 845
X-Content-Type-Options: nosniff