---
title: "Generate Dbt Test"
method: POST
path: "/dbt/v2/dbt-test/"
tags: ["DBT_V2"]
---

# Generate Dbt Test

`POST /dbt/v2/dbt-test/`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/dbt/v2/dbt-test/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Headers

- `x-tenant` string, required

## Request body

- DBTTest
  - `model` DBTModel, required
    - `model_name` string, required
    - `adapter` string, nullable
    - `model_description` string, nullable
    - `compiled_sql` string, nullable
    - `schedule` string, nullable
    - `columns` Column[], nullable
      - `column_name` string, nullable
      - `data_type` string, nullable
      - `description` string, nullable
      - `tests` string[], nullable
    - `dependencies` DBTModel[], nullable
  - `user_request` string, required
  - `dbt_expectations` boolean
  - `dbt_utils` boolean
  - `history` UnifiedMessage[], nullable
    - `type` 'SystemMessage' | 'HumanMessage', required
    - `content` string, required
    - `additional_kwargs` object, nullable
  - `column_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Not supported for public user
- `403`: Not supported for public user
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
