Toolpack:Add Edit Digitmap Files RestFul A: Difference between revisions
(Created page with "{{DISPLAYTITLE:Add/Edit Digitmap files with RestFul API}} You can use the Add/Edit digitmap file in your system with RestFul API using JSON format. The JSON format must be th...") |
No edit summary |
||
| Line 14: | Line 14: | ||
name: digitmap file name | name: digitmap file name | ||
\r\n: new line. Each digit/digits you entered must start with the new line. | \r\n: new line. Each digit/digits you entered must start with the new line. | ||
==Updating Digitmap File== | |||
You can update the existing Disitmap file with the PUT command: | You can update the existing Disitmap file with the PUT command: | ||
Revision as of 05:31, 12 September 2022
You can use the Add/Edit digitmap file in your system with RestFul API using JSON format. The JSON format must be the following:
{
"***meta***": {
"version": "3.1.135",
"src_path": ""
},
"name": "digitmap_1.csv",
"content": "called,calling,routeset_name\r\n1001,,NAP_1\r\n1002,,NAP_1\r\n1003,,NAP_1\r\n11,,NAP_2\r\n1200,,NAP_3\r\n1201,,NAP_3\r\n1202,,NAP_3\r\n1310,,NAP_6\r\n1310,,NAP_6\r\n1310,,NAP_6\r\n1220,,NAP_4\r\n1221,,NAP_4\r\n2105,,NAP_5\r\n2106,,NAP_5\r\n"
}
name: digitmap file name \r\n: new line. Each digit/digits you entered must start with the new line.
Updating Digitmap File
You can update the existing Disitmap file with the PUT command:
Example: We use the Postman tool in this example and the URL is http://192.168.1.26:12358/configurations/3CX/file_dbs/File_DB/routesets_digitmaps/digitmap_1%2Ecsv
If the update is successful you will see the following information in the Postman Tool