rules

Validate an action expression.

Changed on

Validate an action expression as used in rule actions. Returns whether the submitted expression is valid. If the expression is invalid, a 422 validation error is returned instead.

get/v1/rules/validate-expression

Request

  • Base URL
    https://demo.firefly-iii.org/api
  • URL
    https://demo.firefly-iii.org/api/v1/rules/validate-expression
  • Auth
    • OAuth 2
      Authorization code: https://demo.firefly-iii.org/oauth/authorize
      Token URL: https://demo.firefly-iii.org/oauth/token
    • or HTTP bearer

Query parameters

expressionstring required
Example:{{ description | upper }}

The action expression to validate.

Headers

X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00

Unique identifier associated with this request.

Response

The expression is valid.

validboolean

Example response

{
  "valid": true
}

Changes