---
title: "Syntax Check"
method: POST
path: "/formulamanager.check"
tags: ["Logics"]
---

# Syntax Check

`POST /formulamanager.check`

Checks syntax for the provided logic fragment. As logic fragments (i.e. calculation schema entries or logic elements) can also reference previous logic element results, the parameter `knownElements` is available to declare a number of “names” as valid for the purpose of the syntax check.

## Request body

- object
  - `data` object, required
    - `formulaExpression` string, required — The expression string of the fragment.
    - `knownElements` string[], required — An array of strings with valid element names (which could be referenced in the expression).

## Response `200`

OK

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
