Associate Billing Manager with the Organization by Username
PUT v2/organizations/:guid/billing_managers
Request
Route
PUT v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/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/51f3be07-7aa0-42e6-8762-4b8499ab4239/billing_managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.GhB3E1trQfR-1_r0vShWRT0Fla-KmVLMeQZNpcpj3IM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "51f3be07-7aa0-42e6-8762-4b8499ab4239",
"url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239",
"created_at": "2015-10-13T17:31:40Z",
"updated_at": null
},
"entity": {
"name": "name-263",
"billing_enabled": false,
"quota_definition_guid": "092b2eac-69fb-41fe-a686-edcf286dc96a",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/092b2eac-69fb-41fe-a686-edcf286dc96a",
"spaces_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/spaces",
"domains_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/domains",
"private_domains_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/private_domains",
"users_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/users",
"managers_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/managers",
"billing_managers_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/billing_managers",
"auditors_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/auditors",
"app_events_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/app_events",
"space_quota_definitions_url": "/v2/organizations/51f3be07-7aa0-42e6-8762-4b8499ab4239/space_quota_definitions"
}
}
Headers