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-400/billing_managed_organizations/4fc860aa-5bb4-4912-94c9-178a557ed474

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-400/billing_managed_organizations/4fc860aa-5bb4-4912-94c9-178a557ed474" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMSIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjZ9.FV3q8J1fa58NtDmUt7JTA3Ic8zaqpBzcFWN9yB0vQNU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-400",
    "url": "/v2/users/uaa-id-400",
    "created_at": "2016-05-12T00:45:26Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "5071eb6c-a157-4e78-bba5-5ed0630dc84b",
    "default_space_url": "/v2/spaces/5071eb6c-a157-4e78-bba5-5ed0630dc84b",
    "spaces_url": "/v2/users/uaa-id-400/spaces",
    "organizations_url": "/v2/users/uaa-id-400/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-400/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-400/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-400/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-400/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-400/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ffd26dc7-878e-4b93-8db5-3667c4120a63
Content-Length: 845
X-Content-Type-Options: nosniff