---
title: "Edit routing table"
method: PUT
path: "/organization/{organizationId}/cluster/{clusterId}/routingTable"
tags: ["Clusters"]
---

# Edit routing table

`PUT /organization/{organizationId}/cluster/{clusterId}/routingTable`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/routingTable`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/organization/:organizationId/cluster/:clusterId/routingTable/put.ts> (a function with typed inputs; its response is checked against the schema)

Edit routing table by returning updated table.

## Path parameters

- `organizationId` string, uuid, required
- `clusterId` string, uuid, required

## Request body

- ClusterRoutingTableRequest
  - `routes` object[], required
    - `destination` string, required
    - `target` string, required
    - `description` string, required

## Response `201`

Updated routing table

- ClusterRoutingTable
  - `results` object[]
    - `destination` string, required
    - `target` string, required
    - `description` string, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
