JSON API » calleridgroups » calleridgroups/callers/import

Imports callers in a callerid group from a CSV file.

Input parameters

Requires authentication and the system role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
calleridgroupIntegerID of callerid group to import into.Yes
csvStringThe contents of the CSV file.Yes
deleteInteger1 to delete all callers in callerid group first, 0 not to.No0

Responses

CodeDescription
200Success.
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.
500An internal error occurred. Check the key and message fields for more details.

Data returned

The number of callers created.

Example: With required parameters (csv field omitted for brevity)

http://enswitch.example.com/api/json/calleridgroups/callers/import/?auth_username=user;auth_password=password;calleridgroup=123;csv=...

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

Change history

VersionChanges
4.3Function added.