---
title: "Compile a deployment's data model and report compilation errors"
method: GET
path: "/build/api/v1/deployments/{deploymentId}/data-model/validate"
tags: ["Data Model"]
---

# Compile a deployment's data model and report compilation errors

`GET /build/api/v1/deployments/{deploymentId}/data-model/validate`

## Path parameters

- `deploymentId` integer, required

## Query parameters

- `branchName` string
- `devMode` boolean

## Response `200`

- DataModelValidationResponse
  - `branchName` string, required
  - `cubesCount` integer, nullable
  - `deploymentId` integer, required
  - `errors` DataModelValidationError[], required
    - `fileName` string, nullable
    - `message` string, required
  - `mode` 'production' | 'dev_mode', required
  - `valid` boolean, required

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/97e151460143/schema)
