# Updating a Route

### Updating a static route

To show the routing table in general it will be:

```
 tbconfig -u root -p root /configurations/main_config/routes/Route_1
```

To dump it into a file:

```
tbconfig -u root -p root /configurations/main_config/routes/Route_1 route1.json -r
```

The file route1.json will look something like this:

```
{
 "called" : "",
 "calling" : "",
 "custom_attributes" : {
   "forward_sip_domain" : "1",
   "priority" : "10",
   "private_address" : "",
   "remapped_private_address" : "",
   "weight" : "100"
 },
 "name" : "Route_1",
 "nap" : "NAP_SIP_1",
 "remapped_called" : "",
 "remapped_calling" : "",
 "remapped_destination_leg_profile" : "(same as NAP)",
 "remapped_nap" : "(By registered user)",
 "remapped_source_leg_profile" : "(same as NAP)",
 "routeset_name" : "",
 "***meta***" : {
   "src_path" : "",
   "version" : "3.0.134"
 }
```

\
Then the file can be modified and reloaded like this:

```
 tbconfig -u root -p root /configurations/main_config/routes/Route_1 -U route1.json
```


---

# Agent Instructions: 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:

```
GET https://prosbcdocs.telcobridges.com/tools-tips-and-tricks/restful-api/tbconfig-examples/updating-a-route.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
