JSON API » ingroups » ingroups/update

Updates an existing inbound group.

Input parameters

Requires authentication and the system role privilege.

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

Responses

CodeDescription
201Input passed validation. Only returned if validation=1.
204Success.
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.
404The inbound group does not exist.

Data returned

No data is returned.

Example: Changing the name

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

{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }

Change history

VersionChanges
3.13Function added.