---
title: "Redeploy a pipeline"
method: POST
path: "/api/v1/pipelines/{pipelineId}/redeploy"
tags: ["Pipelines"]
---

# Redeploy a pipeline

`POST /api/v1/pipelines/{pipelineId}/redeploy`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/pipelines/{pipelineId}/redeploy`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Triggers a fresh production run from the tip of the pipeline's linked branch and responds 202 with the new run's initial status (queued or running). Poll the pipeline detail endpoint to observe the run reaching a terminal status. The new run picks up the currently-applied environment variables.

## Path parameters

- `pipelineId` string, required

## Response `202`

The new run's initial status.

- object
  - `status` 'queued' | 'running' | 'ready' | 'failed' | 'canceled', required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `409`: Response.
- `429`: Too many requests; retry after the indicated delay.
- `502`: Response.

---

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