---
title: "Create a new recording from an arbitrary InfluxQL query"
method: POST
path: "/recordings/query"
tags: ["recordings"]
---

# Create a new recording from an arbitrary InfluxQL query

`POST /recordings/query`

## Request body

- object
  - `id` string — Recording ID
  - `type` string, required — Type of recording to save
  - `query` string, required
  - `cluster` string

## Response `201`

Recording Started

- Recording
  - `link` Link — URI of resource.
    - `rel` string, required
    - `href` string, url, required
  - `id` string
  - `type` string
  - `size` integer
  - `date` string, dateTime
  - `error` string
  - `status` string
  - `progress` number

## Other responses

- `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)
