---
title: "Create a new replay"
method: POST
path: "/replays"
tags: ["replays"]
---

# Create a new replay

`POST /replays`

## Request body

- object
  - `id` string — Replay ID
  - `task` string, required — ID of task
  - `recording` string, required — ID of recording
  - `recording-time` boolean
  - `clock` string

## Response `201`

Replay Started

- Replay
  - `link` Link — URI of resource.
    - `rel` string, required
    - `href` string, url, required
  - `id` string
  - `task` string
  - `recording` string
  - `recording-time` boolean
  - `clock` string
  - `error` string
  - `status` string
  - `progress` number

## Other responses

- `202` — Replay running
- `default` — A processing or an unexpected error.

---

[API](https://skmtc.net/influxdata/apis/kapacitor.md) · [All operations](https://skmtc.net/influxdata/apis/kapacitor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/kapacitor/versions/796853de0228/schema)
