---
title: "Primes a syntax error response"
method: POST
path: "/prime/{clusterId}#(syntax_error)"
tags: ["prime"]
---

# Primes a syntax error response

`POST /prime/{clusterId}#(syntax_error)`

## Path parameters

- `clusterId` string, required

## Request body

- PrimeQuerySyntaxError
  - `when` Query, required
    - `query` string, required
    - `consistency_level` Consistency[]
    - `params` object — Each property is a mapping of parameter name to paramter value. The value can be of any type as simulacron will attempt to map the json value to it's native binary format"
    - `param_types` object — Each property is a mapping of parameter name to parameter type
  - `then` SyntaxErrorResult, required
    - `result` string, required
    - `delay_in_ms` integer, required — Adds delay to send response back to client.
    - `ignore_on_prepare` boolean, required — Whether or not this result be applied to a matching prepare statement. If not specified, defaults to true (does not apply) and applies to the execution of statements tied to that prepared statement.
    - `message` string, required

## Response `201`

PrimedQuery

- PrimeQuerySyntaxError
  - `when` Query, required
    - `query` string, required
    - `consistency_level` Consistency[]
    - `params` object — Each property is a mapping of parameter name to paramter value. The value can be of any type as simulacron will attempt to map the json value to it's native binary format"
    - `param_types` object — Each property is a mapping of parameter name to parameter type
  - `then` SyntaxErrorResult, required
    - `result` string, required
    - `delay_in_ms` integer, required — Adds delay to send response back to client.
    - `ignore_on_prepare` boolean, required — Whether or not this result be applied to a matching prepare statement. If not specified, defaults to true (does not apply) and applies to the execution of statements tied to that prepared statement.
    - `message` string, required

## Other responses

- `400` — Unable to parse provided query

---

[API](https://skmtc.net/datastax/apis/simulacron-rest-api.md) · [All operations](https://skmtc.net/datastax/apis/simulacron-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datastax/simulacron-rest-api/versions/0a5cd5c466d5/schema)
