# Pause or resume an agent's pipeline subscription

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

**Operation ID**: `setPipelineState`
**Summary**: Pause or resume an agent's pipeline subscription
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.

## Tags
- Agents
## Parameters

- **id** (required) - path
  - Type: string
- **jobId** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `StateChangeRequest`

## Responses

### 204

State set (or already set)

### 400

The state is not ACTIVE or PAUSED

### 401

Unauthorized

### 404

Agent not found, or not subscribed to the pipeline
