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-144/billing_managed_organizations/84ed630c-526d-4941-a2f7-c9f1ff7a463e
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
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-144/billing_managed_organizations/84ed630c-526d-4941-a2f7-c9f1ff7a463e" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDR9.JyduMloMaGyJMQfCLxFx5HSQZKaYnDFKIJ8Zle46XfE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-144",
"url": "/v2/users/uaa-id-144",
"created_at": "2016-04-06T00:17:24Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "94900a31-d24d-461b-8a3b-3b599cfe5a23",
"default_space_url": "/v2/spaces/94900a31-d24d-461b-8a3b-3b599cfe5a23",
"spaces_url": "/v2/users/uaa-id-144/spaces",
"organizations_url": "/v2/users/uaa-id-144/organizations",
"managed_organizations_url": "/v2/users/uaa-id-144/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-144/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-144/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-144/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-144/audited_spaces"
}
}
Headers