JSON API » calleridgroups » calleridgroups/update

Updates an existing callerid group, used for numbers to route some callers to alternative destinations.

Input parameters

Requires authentication and the administrator role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
idIntegerID of callerid group to update.Yes
descriptionStringDescription.Yes
nameStringName.Yes
sharedInteger1 to share with all customers recursively, 0 not to. Only has effect with commerce role privilege.NoCurrent value.

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.
403Your rate plan does not allow this.
404The callerid group does not exist, or you do not have permission to update it.

Data returned

No data is returned.

Example: Changing the name and description

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

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

Change history

VersionChanges
4.3Function added.