---
title: "Validate model"
method: GET
path: "/v1/models/{modelId}/validate"
tags: ["Models"]
---

# Validate model

`GET /v1/models/{modelId}/validate`

Retrieve validation issues for a model and its branches.

## Path parameters

- `modelId` string, uuid, required

## Query parameters

- `branchId` string, uuid

## Response `200`

A list of validation issues.

- object[]
  - `message` string — The validation issue message.
  - `is_warning` boolean — If `true`, the issue is a warning. If `false`, the issue is an error.
  - `yaml_path` string — The path to the YAML file containing the issue.
  - `auto_fix` object — Information about automatic fixes available for the issue.
    - `description_short` string — A short description of the auto-fix.
    - `description_unique` string — A unique description of the auto-fix.

## Other responses

- `400` — Bad Request Possible error messages: - `modelId: Invalid uuid` - `Schema models do not have branches` - `Unrecognized key(s) in object: '<invalidParameter>'`
- `404` — Not Found Possible error messages: - `Model with id <modelId> does not exist` - `Branch model with id <branchId> does not exist`
- `405` — Method Not Allowed - Invalid HTTP method for this endpoint
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)
- `500` — Internal Server Error Possible error messages: - `Model service error`

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
