---
title: "Trigger pipeline for a specific project"
method: POST
path: "/projects/{id}/trigger-pipeline"
tags: ["Projects"]
---

# Trigger pipeline for a specific project

`POST /projects/{id}/trigger-pipeline`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{id}/trigger-pipeline`
- Auth: none declared

## Path parameters

- `id` integer, required

## Request body

- TriggerPipelinePayload
  - `branch` string, nullable
  - `commit` string, nullable
  - `environment_id` integer, nullable: Optional environment ID - if not provided, will use the project's preview environment
  - `tag` string, nullable

## Response `200`

Pipeline triggered successfully

- TriggerPipelineResponse
  - `branch` string, nullable
  - `commit` string, nullable
  - `environment_id` integer, required
  - `message` string, required
  - `project_id` integer, required
  - `tag` string, nullable

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Deployment permission or scope denied
- `404`: Project not found
- `500`: Internal server error

## Changes

- **2026-11-16** `eb31063c55e2`: 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:id/trigger-pipeline/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
