latestOpenAPI 3.0.02026-08-224362174.0 KB

24a8012aa8c8

Create Model

Create a new model

post/models

Query parameters

skipColumnQueryboolean

Request body

namestring required

The name of the model

slugstring required

The slug of the model

queryTypestring required

The type of the query. Available options: custom, raw_sql, tabel, dbt and visual.

sourceIdnumber double required

The id of the source that model is connected to

isSchemaboolean required

If is_schema is true, the model is just used to build other models. Either as part of visual querying, or as the root of a visual query.

primaryKeystring required

The primary key will be null if the query doesn't get directly synced (e.g. a relationship table for visual querying)

folderIdstring

Response

Ok

OR
OR
'Internal Server Error' required