Skip to main content
GET
/
projects
/
{projectName}
/
packages
/
{packageName}
/
models
/
{path}
Error
A valid request URL is required to generate request examples
{
  "resource": "<string>",
  "packageName": "<string>",
  "path": "<string>",
  "malloyVersion": "<string>",
  "modelInfo": "<string>",
  "sourceInfos": [
    "<string>"
  ],
  "queries": [
    {
      "name": "<string>",
      "sourceName": "<string>",
      "annotations": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectName
string
required

Name of the project Standard identifier pattern for resource names

packageName
string
required

Name of the package

path
string
required

Path to the model within the package Path pattern supporting slashes, dots, and dashes

Query Parameters

versionId
string

Version identifier for the package Version identifier pattern supporting dots and dashes

Response

Compiled Malloy model

Compiled Malloy model with sources, queries, and metadata

resource
string

Resource path to the model

packageName
string

Name of the package containing this model

path
string

Relative path to the model file within its package directory

malloyVersion
string

Version of the Malloy compiler used to generate the model data

modelInfo
string

JSON string containing model metadata and structure information

sourceInfos
string[]

Array of JSON strings containing source information for each data source

queries
object[]

Array of named queries defined in the model