> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/add-edit-digitmap-files-with-restful-api.md).

# Add/Edit Digitmap files with RestFul API

You can Add/Edit digitmap file/s in your system with RestFul API using JSON format. The JSON must be in the following format:

```
{
    "***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/>

![RestFul Digitmap Post Send](https://docs.telcobridges.com/w/images/d/d9/RestFul_Digitmap_Post_Send.png)

If the import is successful you will see the following information in the Postman Tool

![RestFul Digitmap Post Response](https://docs.telcobridges.com/w/images/6/6a/RestFul_Digitmap_Post_Response.png)

### Updating a Digitmap File

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>

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>

![RestFul Digitmap Put Send](https://docs.telcobridges.com/w/images/5/55/RestFul_Digitmap_Put_Send.png)

If the update is successful you will see the following information in the Postman Tool

![RestFul Digitmap Put Response](https://docs.telcobridges.com/w/images/4/43/RestFul_Digitmap_Put_Response.png)

You can get more information about how to use RestFul API and Postman Tool from the following link [Northbound\_interface:RESTful](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/api/northbound-interface-restful-api/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/add-edit-digitmap-files-with-restful-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
