---
title: "Update a static route by namespace and name"
method: PUT
path: "/staticroutes/{namespace}/{name}"
tags: ["static routes"]
---

# Update a static route by namespace and name

`PUT /staticroutes/{namespace}/{name}`

## Path parameters

- `namespace` string, required
- `name` string, required

## Request body

- object
  - `name` string
  - `namespace` string
  - `envoyFleetName` string
  - `envoyFleetNamespace` string
  - `openapi` string

## Response `201`

static route updated

- StaticRouteItem
  - `name` string, required
  - `namespace` string, required
  - `envoyFleetName` string
  - `envoyFleetNamespace` string

## Other responses

- `400` — The content of the static route is malformed
- `404` — static route not found

---

[API](https://skmtc.dev/kubeshop/apis/kusk-gateway-api.md) · [All operations](https://skmtc.dev/kubeshop/apis/kusk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubeshop/kusk-gateway-api/revisions/f8f51902550d/schema)
