---
title: "Check the syntax of an OPL file"
method: POST
path: "/opl/syntax/check"
tags: ["relationship"]
---

# Check the syntax of an OPL file

`POST /opl/syntax/check`

The OPL file is expected in the body of the request.

## Response `200`

checkOplSyntaxResult

- CheckOplSyntaxResult
  - `errors` ParseError[] — The list of syntax errors
    - `end` SourcePosition
      - `Line` integer
      - `column` integer
    - `message` string
    - `start` SourcePosition
      - `Line` integer
      - `column` integer

## Other responses

- `400` — errorGeneric
- `default` — errorGeneric

---

[API](https://skmtc.net/ory/apis/ory-keto.md) · [All operations](https://skmtc.net/ory/apis/ory-keto/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ory/ory-keto/versions/305cb58cb754/schema)
