Associate Billing Manager with the Organization by Username
PUT v2/organizations/:guid/billing_managers
Request
Route
PUT v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/billing_managers
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/billing_managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.AAIKYbugq8ciwAeHLDAIE1jvo_exyMDX-6kWqrXp2A0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2196e373-6476-476a-a4cf-f1b11e1754e9",
"url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9",
"created_at": "2015-09-30T23:30:43Z",
"updated_at": null
},
"entity": {
"name": "name-1324",
"billing_enabled": false,
"quota_definition_guid": "6240d74a-6560-451f-bfe7-f30bef923132",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/6240d74a-6560-451f-bfe7-f30bef923132",
"spaces_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/spaces",
"domains_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/domains",
"private_domains_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/private_domains",
"users_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/users",
"managers_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/managers",
"billing_managers_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/billing_managers",
"auditors_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/auditors",
"app_events_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/app_events",
"space_quota_definitions_url": "/v2/organizations/2196e373-6476-476a-a4cf-f1b11e1754e9/space_quota_definitions"
}
}
Headers