---
title: "Pause or resume an agent's pipeline subscription"
method: PUT
path: "/v1/agents/{id}/pipelines/{jobId}/state"
tags: ["Agents"]
---

# Pause or resume an agent's pipeline subscription

`PUT /v1/agents/{id}/pipelines/{jobId}/state`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/agents/{id}/pipelines/{jobId}/state`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Sets one subscription to PAUSED or ACTIVE. While paused, new signals from the pipeline are dropped for this agent, and the pipeline keeps marking new patterns as sent. Investigations already queued still run. The running pipeline is not restarted.

## Path parameters

- `id` string, required
- `jobId` string, required

## Request body

- StateChangeRequest
  - `state` 'ACTIVE' | 'PAUSED', required

## Response `204`

State set (or already set)

## Other responses

- `400`: The state is not ACTIVE or PAUSED
- `401`: Unauthorized
- `404`: Agent not found, or not subscribed to the pipeline

---

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