---
title: "Restart a pipeline"
---

> Documentation Index
> Fetch the complete documentation index at: https://www.arroyo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Restart a pipeline

Path: Arroyo REST API › pipelines

`POST /v1/pipelines/{id}/restart`

URL: `http://localhost:5115/api/v1/pipelines/{id}/restart`

## Path parameters

- `id` (`restart_pipeline.path.id`; string, required) — Pipeline id

## Request body

_Required._

- `force` (`restart_pipeline.force`; boolean, optional, nullable)
- `ignore_state` (`restart_pipeline.ignore_state`; boolean, optional, nullable)

## Example request

```json
{
  "force": true,
  "ignore_state": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'http://localhost:5115/api/v1/pipelines/<id>/restart' \
  --header 'Content-Type: application/json' \
  --data '
{
  "force": true,
  "ignore_state": true
}
'
```

### TypeScript

```typescript
const url = 'http://localhost:5115/api/v1/pipelines/<id>/restart';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({force: true, ignore_state: true})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "http://localhost:5115/api/v1/pipelines/<id>/restart"

payload = {
    "force": True,
    "ignore_state": True
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Updated pipeline

#### Example

```json
{
  "action": "none",
  "action_in_progress": true,
  "action_text": "string",
  "checkpoint_interval_micros": 0,
  "created_at": 0,
  "graph": {
    "edges": [
      {
        "dest_id": 0,
        "edge_type": "string",
        "key_type": "string",
        "src_id": 0,
        "value_type": "string"
      }
    ],
    "nodes": [
      {
        "description": "string",
        "node_id": 0,
        "operator": "string",
        "parallelism": 0
      }
    ]
  },
  "id": "string",
  "name": "string",
  "preview": true,
  "query": "string",
  "state_url": "string",
  "stop": "none",
  "tags": {
    "property1": "string",
    "property2": "string"
  },
  "udfs": [
    {
      "definition": "string",
      "language": "python"
    }
  ]
}
```

- `action_in_progress` (`restart_pipeline.response.200.action_in_progress`; boolean, required)
- `action_text` (`restart_pipeline.response.200.action_text`; string, required)
- `checkpoint_interval_micros` (`restart_pipeline.response.200.checkpoint_interval_micros`; integer, required)
  - format: `int64` · minimum: `0`
- `created_at` (`restart_pipeline.response.200.created_at`; integer, required)
  - format: `int64` · minimum: `0`
- `graph` (`restart_pipeline.response.200.graph`; object, required)
  - `edges` (`restart_pipeline.response.200.graph.edges`; array of object, required)
    - `dest_id` (`restart_pipeline.response.200.graph.edges.dest_id`; integer, required)
      - format: `int32` · minimum: `0`
    - `edge_type` (`restart_pipeline.response.200.graph.edges.edge_type`; string, required)
    - `key_type` (`restart_pipeline.response.200.graph.edges.key_type`; string, required)
    - `src_id` (`restart_pipeline.response.200.graph.edges.src_id`; integer, required)
      - format: `int32` · minimum: `0`
    - `value_type` (`restart_pipeline.response.200.graph.edges.value_type`; string, required)
  - `nodes` (`restart_pipeline.response.200.graph.nodes`; array of object, required)
    - `description` (`restart_pipeline.response.200.graph.nodes.description`; string, required)
    - `node_id` (`restart_pipeline.response.200.graph.nodes.node_id`; integer, required)
      - format: `int32` · minimum: `0`
    - `operator` (`restart_pipeline.response.200.graph.nodes.operator`; string, required)
    - `parallelism` (`restart_pipeline.response.200.graph.nodes.parallelism`; integer, required)
      - format: `int32` · minimum: `0`
- `id` (`restart_pipeline.response.200.id`; string, required)
- `name` (`restart_pipeline.response.200.name`; string, required)
- `preview` (`restart_pipeline.response.200.preview`; boolean, required)
- `query` (`restart_pipeline.response.200.query`; string, required)
- `stop` (`restart_pipeline.response.200.stop`; string, required)
  - one of `"none"`, `"checkpoint"`, `"graceful"`, `"immediate"`, `"force"`
- `tags` (`restart_pipeline.response.200.tags`; map of string, required) — User-defined key/value tags associated with the pipeline.
- `udfs` (`restart_pipeline.response.200.udfs`; array of object, required)
  - `definition` (`restart_pipeline.response.200.udfs.definition`; string, required)
  - `language` (`restart_pipeline.response.200.udfs.language`; string, optional)
    - one of `"python"`, `"rust"`
- `action` (`restart_pipeline.response.200.action`; string, optional, nullable)
  - one of `"none"`, `"checkpoint"`, `"graceful"`, `"immediate"`, `"force"`
- `state_url` (`restart_pipeline.response.200.state_url`; string, optional, nullable) — Optional URL pointing to the state the pipeline was started from.


Source: https://www.arroyo.dev/docs/api/restart-pipeline/index.md
