---
title: "Update A Specific Route"
method: PUT
path: "/routes"
tags: ["Routes"]
---

# Update A Specific Route

`PUT /routes`

## Request body

- Route
  - `route-destination-match-pattern` string, required — This is the main route match for the destination.
  - `route-source-match-pattern` string — This is the source route, in most cases this should default to * and not be set otherwise.
  - `route-class` string — This for jurisdictional routing of class. Leave as * for most cases.
  - `route-match-server-hostname` string, hostname — This field will limit the route to only be effective on a matching hostname. This allow for localized routing to a closest carrier's POP or other special cases.
  - `route-is-enabled` 'yes' | 'no'
  - `description` string, required — This is the route description, use to to give a plain english explanation as to what the route is intended to do.
  - `route-method` 'fixed' | 'cost' | 'percentage', required — This is the type of route to select the distribution method for the next hop/connection setting.

## Response `202`

- object

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/versions/d37f65b5b886/schema)
