tenant_add

Description

Add a new Tenant

Parameters

domain_name
cgrt_username
company_name
company_address_1
company_address_2
company_city
company_state
company_country
company_postcode
company_phone
company_site_url
timezone
currency
orig_max_channels
term_max_channels
calls_per_second
email_billing
email_tech
email_rates

Request

curl -X POST \
-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{
"domain_name": "sbc.yourdomain.com",
"cgrt_username" : "tenantuser",
"company_name" : "The VoIP Company",
"company_address_1" : "",
"company_address_2" : "",
"company_city" : "",
"company_state" : "",
"company_country" : "",
"company_postcode" : "",
"company_phone" : "",
"company_site_url" : "",
"timezone" : "",
"currency" : "USD",
"orig_max_channels" : 100,
"term_max_channels" : 100,
"calls_per_second" : 5,
"email_billing" : "myemail@gmail.com",
"email_tech" : "myemail@gmail.com",
"email_rates" : "myemail@gmail.com"
}' \
-k https://usdemo.cgrtbilling.org/api/users/add_tenant

Response

{"status": "success", "tenant_id": 26}