JSON API » ingroups » ingroups/create

Creates a new inbound group.

Input parameters

Requires authentication and the system role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
nameStringName.Yes
bill_cardsInteger1 to bill calling cards for inbound calls via this inbound group, 0 not to.No1
calleridInteger1 if this inbound group may be used as callerid, 0 if not.No1
callerid_locationInteger1 if this inbound group may be used as location callerid, 0 if not. Has no effect unless location callerid is configured.No1
cnam_lookupInteger1 to perform CNAM lookups on calls to numbers. 0 not to.No0
codeStringArea code.NoEmpty string.
currencyStringCurrency inbound call costs are in.NoSystem currency.
descriptionStringDescription.NoEmpty string.
includedInteger1 if calls to this inbound group counts towards included call time, 0 if not.No0
minimum_poolIntegerMinimum number of spare numbers. If fewer, system will topup using number vendors. 0 to disable.No0
name_invoicesStringName as shown on invoices. Empty string to use name.NoEmpty string.
portedIntegerID of customer who may port numbers to this group. 0 for none. -1 for all.No0
signupInteger1 if this inbound group may be used in signup, 0 if not.No1
tagsStringTags.NoEmpty string.
validationInteger1 to validate input then return, 0 for full action.No0

Responses

CodeDescription
200Success.
201Input passed validation. Only returned if validation=1.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

The ID of the created inbound group.

Example: With required parameters

http://enswitch.example.com/api/json/ingroups/create/?auth_username=user;auth_password=password;name=example

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":123 } }

Change history

VersionChanges
3.14ported input parameter changed from 1 to allow to -1 to allow for all customers, or the ID of the allowed customer.
3.13Function added.