POST
/
sources
/
{source_id}
/
models

Authorizations

Authorization
string
headerrequired

Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.

Path Parameters

source_id
integer
required

ID of the source

Body

application/json
name
string
required

The name of this model.

query
string
required

The SQL query associated with this model.

description
string

The description for this model.

Response

201 - application/json
status
enum<string>

Outcome of the operation.

Available options:
success,
updated,
created,
not_found,
error
data
object