---
title: "Execute a streaming pipeline command"
method: POST
path: "/v1/projects/{projectId}/streaming-pipelines/{streamingPipelineId}/commands"
tags: ["Streaming Pipelines"]
---

# Execute a streaming pipeline command

`POST /v1/projects/{projectId}/streaming-pipelines/{streamingPipelineId}/commands`

Sends a request to the streaming agent to run the specified streaming pipeline command (e.g. start, stop)

## Path parameters

- `projectId` string, uuid, required
- `streamingPipelineId` string, uuid, required

## Request body

- StreamingPipelineCommandRequest
  - `command` 'START' | 'STOP', required — The command to be sent to the streaming agent

## Response `202`

Successfully executed streaming pipeline command

## Other responses

- `400` — Bad request
- `403` — Unauthorized
- `404` — Streaming Pipeline not found
- `409` — Streaming pipeline status conflict (e.g. trying to start a running pipeline or stop a stopped pipeline)
- `500` — Unexpected error occurred

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/revisions/6239825f68eb/schema)
