---
title: "Update gateway route"
method: PUT
path: "/pipeline/gateway-route/{gateway_route_id}"
tags: ["Shared Sources"]
---

# Update gateway route

`PUT /pipeline/gateway-route/{gateway_route_id}`

## Request

- Base URL: `https://api.mezmo.com/v3`
- URL: `https://api.mezmo.com/v3/pipeline/gateway-route/{gateway_route_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/mezmo/apis/pipeline-api/docs/pipeline/gateway-route/:gateway_route_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a gateway route

## Path parameters

- `gateway_route_id` string, required

## Request body

- object
  - `title` string, required
  - `description` string, nullable
  - `type` 'http' | 'splunk-hec' | 'kinesis-firehose' | 'fluent' | 'logstash' | 'mezmo-agent' | 'mezmo-datadog-source' | 'webhook' | 'prometheus-remote-write' | 'open-telemetry-metrics' | 'open-telemetry-logs' | 'open-telemetry-traces', required
  - `legacy_routing` boolean

## Response `200`

Default Response

---

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