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-327/billing_managed_organizations/a01c256a-8833-484e-aa12-8daa5d4a9687
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-327/billing_managed_organizations/a01c256a-8833-484e-aa12-8daa5d4a9687" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTV9.8-h5hvkPKxIUZjE1xQhmR9xb7NVYk2j0tX1aumP2JpA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-327",
"url": "/v2/users/uaa-id-327",
"created_at": "2015-10-13T17:31:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "be6b9597-96b5-4d9a-a957-81544bbe2dac",
"default_space_url": "/v2/spaces/be6b9597-96b5-4d9a-a957-81544bbe2dac",
"spaces_url": "/v2/users/uaa-id-327/spaces",
"organizations_url": "/v2/users/uaa-id-327/organizations",
"managed_organizations_url": "/v2/users/uaa-id-327/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-327/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-327/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-327/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-327/audited_spaces"
}
}
Headers