Associate Billing Manager with the Organization by Username
PUT v2/organizations/:guid/billing_managers
Request
Route
PUT v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/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/58f79e55-4119-49f1-8f61-39ddb45cd03e/billing_managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzF9.qWDrbhzmcto2EgNX4TU9KuIogtJUyK5KNa4fTQOmqzM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "58f79e55-4119-49f1-8f61-39ddb45cd03e",
"url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e",
"created_at": "2016-01-26T22:20:31Z",
"updated_at": null
},
"entity": {
"name": "name-2211",
"billing_enabled": false,
"quota_definition_guid": "57e118ca-33cd-4b78-87e5-734ff2c170af",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/57e118ca-33cd-4b78-87e5-734ff2c170af",
"spaces_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/spaces",
"domains_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/domains",
"private_domains_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/private_domains",
"users_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/users",
"managers_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/managers",
"billing_managers_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/billing_managers",
"auditors_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/auditors",
"app_events_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/app_events",
"space_quota_definitions_url": "/v2/organizations/58f79e55-4119-49f1-8f61-39ddb45cd03e/space_quota_definitions"
}
}
Headers