> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Definition

Validate a definition against the schema and manifest.

## **POST** `/revisions/:id/data/query` (Command: `check_definition`)

### Request Body

| Parameter       | Type   | Required | Description                        |
| :-------------- | :----- | :------- | :--------------------------------- |
| `engine`        | string | Yes      | Must be `workflow_blobhub`.        |
| `command`       | string | Yes      | Must be `check_definition`.        |
| `definition_id` | string | Yes      | The ID of the definition to check. |

### Response

| Parameter | Type   | Description                       |
| :-------- | :----- | :-------------------------------- |
| `status`  | string | `valid` or `invalid`.             |
| `events`  | array  | List of validation events/errors. |

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "engine": "workflow_blobhub",
    "command": "check_definition",
    "definition_id": "def_001"
  }
  ```

  ```json Response theme={null}
  {
    "status": "valid",
    "events": []
  }
  ```
</CodeGroup>
