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.

Securitybasic or X-PriceFx-jwt
Request
Request Body schema: application/json
required
object
formulaExpression
required
string non-empty

The expression string of the fragment.

knownElements
required
Array of strings

An array of strings with valid element names (which could be referenced in the expression).

Responses
200

OK

Request samples
application/json
{
  • "data": {
    • "formulaExpression": "api.inputBuilderFactory()\n .createStringUserEntry(\"MyStringParameter\")\n .getInput()",
    • "knownElements": [
      • "string",
      • "string"
      ]
    }
}