> 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-and-edit-routeset-files-with-restful-api.md).

# Add and Edit Routeset files with RESTFul API

You can Add and Edit routeset files in your system with RestFul API using JSON, in the following format:

```
{
    "***meta***": {
        "version": "3.1.135",
        "src_path": ""
    },
    "name": "routeset_1.csv",
    "content": "routeset_name,priority,weight\r\nNAP_1,3,100\r\nNAP_2,4,100"
}
```

* name: routeset file name
* \r\n: new line. Each routesets you entered must start with the new line.

### Adding a new Routeset File

You can add a new Routeset file with the POST command:

POST <http://ProSBCIP:12358/configurations/Configurationname/file\\_dbs/File\\_DB/routesets\\_definitions/>

ProSBC will create a new Routeset file from the name in the JSON file.

Example: Using the Postman tool, the URL is:

<http://192.168.1.25:12358/configurations/config\\_2/file\\_dbs/File\\_DB/routesets\\_definitions/>

![RestFul routeset Post Send](https://docs.telcobridges.com/w/images/2/27/RestFul_routeset_Post_Send.png)

If the import is successful, the following message is returned:

![RestFul Routeset Post Response](https://docs.telcobridges.com/w/images/1/18/RestFul_Routeset_Post_Response.png)

### Updating a Routeset File

You can update the existing Routeset file with the PUT command:

PUT <http://ProSBCIP:12358/configurations/Configurationname/file\\_dbs/File\\_DB/routesets\\_definitions/routesetfilename%2Ecsv>

Example: Using the Postman tool, the URL is:

<http://192.168.1.25:12358/configurations/config\\_2/file\\_dbs/File\\_DB/routesets\\_definitions/routeset\\_1%2Ecsv>

![RestFul Routeset Put Send](https://docs.telcobridges.com/w/images/7/7a/RestFul_Routeset_Put_Send.png)

If the update is successful, the following message is returned:

![RestFul Routeset Put Response](https://docs.telcobridges.com/w/images/b/bb/RestFul_Routeset_Put_Response.png)

Learn 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-and-edit-routeset-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.
