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-208/billing_managed_organizations/8889cb40-c674-48d4-bd46-f47525cdf96d
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-208/billing_managed_organizations/8889cb40-c674-48d4-bd46-f47525cdf96d" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.E5fZz6ZkXKLHRb2bzP28mim7o9_1EYutsZt3a5fEcnM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-208",
"url": "/v2/users/uaa-id-208",
"created_at": "2015-07-27T22:43:18Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "e99b3328-4bf0-44b6-ad92-e933ca581ba1",
"default_space_url": "/v2/spaces/e99b3328-4bf0-44b6-ad92-e933ca581ba1",
"spaces_url": "/v2/users/uaa-id-208/spaces",
"organizations_url": "/v2/users/uaa-id-208/organizations",
"managed_organizations_url": "/v2/users/uaa-id-208/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-208/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-208/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-208/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-208/audited_spaces"
}
}
Headers