> For the complete documentation index, see [llms.txt](https://tmediadocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tmediadocs.telcobridges.com/other-pages/call-routing-routes-and-naps/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://tmediadocs.telcobridges.com/telecom-references/developer-reference/restful-api/northbound-interface-restful-api)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://tmediadocs.telcobridges.com/other-pages/call-routing-routes-and-naps/add-and-edit-routeset-files-with-restful-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
