Toolpack:Add Edit Digitmap Files RestFul A: Difference between revisions
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. | ||
==Adding a new Digitmap File== | |||
You can add a new Digitmap file with the POST command. | |||
POST http://ProSBCIP:12358/configurations/Configurationname/file_dbs/File_DB/routesets_digitmaps/ | |||
ProSBC will create a new Digitmap file from the name in the JSON file. | |||
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/ | |||
[[Image:RestFul_Digitmap_Post_Send.png|800px| ]] | |||
If the import is successful you will see the following information in the Postman Tool | |||
[[Image:RestFul_Digitmap_Post_Response.png|800px| ]] | |||
==Updating a Digitmap File== | ==Updating a Digitmap File== | ||
You can update the existing | You can update the existing Digitmap file with the PUT command: | ||
PUT http://ProSBCIP:12358/configurations/Configurationname/file_dbs/File_DB/routesets_digitmaps/digitmapfilename%2Ecsv | PUT http://ProSBCIP:12358/configurations/Configurationname/file_dbs/File_DB/routesets_digitmaps/digitmapfilename%2Ecsv | ||
Revision as of 05:39, 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.
Adding a new Digitmap File
You can add a new Digitmap file with the POST command.
POST http://ProSBCIP:12358/configurations/Configurationname/file_dbs/File_DB/routesets_digitmaps/ ProSBC will create a new Digitmap file from the name in the JSON file.
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/
If the import is successful you will see the following information in the Postman Tool
Updating a Digitmap File
You can update the existing Digitmap 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