[Yandex Cloud documentation](../../../index.md) > [Yandex Query](../../index.md) > Reference > [HTTP API](../index.md) > [Methods](index.md) > stop-query

# stop-query

This method terminates a query.

When using the HTTP API, you must [authenticate](../auth.md) by providing the [required headers](../index.md#mandatory-headers). You can also specify [optional headers](../index.md#optional-headers) to control how requests are executed. The HTTP API may return [errors](../index.md#errors).

## Request {#request}

`POST` request to `/queries/{query_id}/stop?project={folder_id}`, where `{folder_id}` is the folder ID and `{query_id}` is the query ID.

## Response {#response}

If successful, the response returns an HTTP 204 status code and an empty body.

## Example {#example}

Request:

```json
curl \
  --request 'POST' \
  'https://api.yandex-query.cloud.yandex.net/api/fq/v1/queries/cseugn35bc3r********/stop?project=b1gaue5b382m********' \
  --header 'accept: */*' \
  --data ''
```

Response: HTTP 204.