Creates a new Malloy package within the specified environment. A package serves as a
container for models, notebooks, embedded databases, and other resources. The package
will be initialized with the provided metadata and can immediately accept content.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
environmentName
string
required
Name of the environment
Standard identifier pattern for resource names
Pattern: ^[a-zA-Z0-9_-]+$
Body
application/json
Represents a Malloy package containing models, notebooks, and embedded databases
resource
string
Resource path to the package
name
string
Package name
description
string
Package description
location
string
Package location, can be an absolute path or URI (e.g. github, s3, gcs, etc.)
explores
string[]
Optional opt-in for curated discovery. When present, only these model file paths (relative to the package root) are listed via listModels(), and within-file discovery is filtered to each model's export {} closure. When absent or empty, every model is listed with its full source set (backward-compatible). Every other .malloy file still compiles for import/join resolution but is hidden from listings once explores is declared. Notebooks are always listed regardless of this field.
queryableSources
enum<string>
Controls whether the discovery surface is also a query boundary. "declared" (the default) makes queryable == discoverable: when explores is declared, only explores model files — and within them only the export {} closure — are valid top-level query targets; every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). "all" decouples them: explores/export {} gate discovery only and every compiled source stays directly queryable. When explores is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to "declared". Identity-based access is a separate concern — see #(authorize).
Available options:
declared,
all
manifestLocation
string | null
URI (gs:// or s3://) of the externally-computed manifest for this package.
On (re)load the publisher reads it and binds persist references
(sourceEntityId -> physicalTableName). Null = serve live.
scope
enum<string>
Package-level materialization scope mode, declared at the malloy-publisher.json manifest root. Governs the lifetime/ownership of every persisted source and dimension index in the package, and replaces the removed per-source/per-dimension sharing annotation:
version: materializations are owned by (scoped to) the package
version; no cross-version reuse. Cadence is a single
package-level materialization.schedule OR freshness (never
both).
package: materializations may be reused across the package's
own versions when fresh; cadence is freshness only (no
schedule allowed).
Null/absent = unknown this request; the control plane treats it as the platform default (package) and never as a scope change. See docs/persistence.md §3.1.
Available options:
version,
package
materialization
object | null
Package-level Malloy Persistence policy declared in
malloy-publisher.json. The control plane reads it to drive scheduled
re-materialization. The object is present whenever the package is
loaded (with schedule: null when none is declared), so its
presence is the authoritative manifest policy; null/absent means
only that metadata was unavailable this request, which the control
plane treats as "unknown" (never a schedule removal). A published
version's schedule is persisted write-once and thereafter only
verified, so it cannot self-wipe on a later build.
Show child attributes
Response
Returns the package created
Represents a Malloy package containing models, notebooks, and embedded databases
resource
string
Resource path to the package
name
string
Package name
description
string
Package description
location
string
Package location, can be an absolute path or URI (e.g. github, s3, gcs, etc.)
explores
string[]
Optional opt-in for curated discovery. When present, only these model file paths (relative to the package root) are listed via listModels(), and within-file discovery is filtered to each model's export {} closure. When absent or empty, every model is listed with its full source set (backward-compatible). Every other .malloy file still compiles for import/join resolution but is hidden from listings once explores is declared. Notebooks are always listed regardless of this field.
exploresWarnings
string[]
read-only
Actionable messages for declared explores that do not resolve to a real model in this package (e.g. a misspelled path, or a notebook listed as an explore). Server-computed and read-only: it is ignored on create/update requests and only ever returned in responses. Present only when there are such problems. Loading is fail-safe — the unresolved entry simply lists nothing rather than exposing everything — so this is the signal that a package is misconfigured; publishing such a package is rejected.
warnings
object[]
read-only
Non-fatal render-tag findings collected when the package loaded: a render annotation (e.g. # big_value or # currency) misconfigured for the field it sits on, so it renders as "[object Object]" or an inline error at query time but does not stop the model compiling or the package loading. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.
Show child attributes
queryableSources
enum<string>
Controls whether the discovery surface is also a query boundary. "declared" (the default) makes queryable == discoverable: when explores is declared, only explores model files — and within them only the export {} closure — are valid top-level query targets; every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). "all" decouples them: explores/export {} gate discovery only and every compiled source stays directly queryable. When explores is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to "declared". Identity-based access is a separate concern — see #(authorize).
Available options:
declared,
all
manifestLocation
string | null
URI (gs:// or s3://) of the externally-computed manifest for this package.
On (re)load the publisher reads it and binds persist references
(sourceEntityId -> physicalTableName). Null = serve live.
scope
enum<string>
Package-level materialization scope mode, declared at the malloy-publisher.json manifest root. Governs the lifetime/ownership of every persisted source and dimension index in the package, and replaces the removed per-source/per-dimension sharing annotation:
version: materializations are owned by (scoped to) the package
version; no cross-version reuse. Cadence is a single
package-level materialization.schedule OR freshness (never
both).
package: materializations may be reused across the package's
own versions when fresh; cadence is freshness only (no
schedule allowed).
Null/absent = unknown this request; the control plane treats it as the platform default (package) and never as a scope change. See docs/persistence.md §3.1.
Available options:
version,
package
materialization
object | null
Package-level Malloy Persistence policy declared in
malloy-publisher.json. The control plane reads it to drive scheduled
re-materialization. The object is present whenever the package is
loaded (with schedule: null when none is declared), so its
presence is the authoritative manifest policy; null/absent means
only that metadata was unavailable this request, which the control
plane treats as "unknown" (never a schedule removal). A published
version's schedule is persisted write-once and thereafter only
verified, so it cannot self-wipe on a later build.
Show child attributes
manifestBindingStatus
enum<string>
read-only
Server-computed, read-only: whether the configured build manifest is currently bound to this package's served models. unbound = no manifest configured, so the package serves live. bound = a manifest was fetched and applied, so persist sources route to their materialized physical tables. live_fallback = a manifestLocation is configured but the fetch/bind failed or timed out, so the package is serving live despite intending to be materialized-routed. Lets the caller confirm the publisher actually bound the configured manifest rather than inferring it from logs.
Available options:
unbound,
bound,
live_fallback
manifestEntryCount
integer
read-only
Server-computed, read-only: number of sourceEntityId -> physical-table entries currently bound (0 when unbound or on live fallback).
boundManifestUri
string | null
read-only
Server-computed, read-only: the manifest URI actually bound to the served models. Usually equals manifestLocation, but can differ after an in-memory auto-load following a materialization build (no URI), in which case it is null. Null whenever the package is unbound.
buildPlan
object | null
Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see CreateMaterializationRequest.buildInstructions) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Credible Data","colors":{"primary":"#94793A","light":"#C59611","dark":"#0C0A09"},"logo":{"light":"https://mintcdn.com/ms2/1t8kfeYj1pwIH2EO/logo/light.svg?fit=max\u0026auto=format\u0026n=1t8kfeYj1pwIH2EO\u0026q=85\u0026s=9c2da46c5a0f1db44806cebf2c34c165","dark":"https://mintcdn.com/ms2/1t8kfeYj1pwIH2EO/logo/dark.svg?fit=max\u0026auto=format\u0026n=1t8kfeYj1pwIH2EO\u0026q=85\u0026s=e529d32e9f5b835d242740ccedbee807","href":"https://credibledata.com"},"favicon":"https://mintcdn.com/ms2/dRbGGzFxug_gROFL/favicon.png?fit=max\u0026auto=format\u0026n=dRbGGzFxug_gROFL\u0026q=85\u0026s=c35f0253242cf69de7e4eacfdb7c424c","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":["https://{your-org}.app.credibledata.com/api/v0","https://{your-org}.data.credibledata.com/api/v0"]}},"background":{"color":{"light":"#F5F5F4","dark":"#1c1917"}},"navbar":{"links":[{"href":"mailto:support@credibledata.com","label":"Support"}]},"footer":{"socials":{"twitter":"https://twitter.com/credibledatahq","linkedin":"https://www.linkedin.com/company/credibledata"}},"seo":{"metatags":{"canonical":"https://docs.credibledata.com"}},"fonts":{"heading":{"family":"Fustat","weight":700,"source":"fonts/Fustat-Variable.woff2","format":"woff2"},"body":{"family":"Diatype","weight":400,"source":"fonts/ABCDiatype-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":{"languages":{"custom":["/languages/motly.tmGrammar.json","/languages/malloy.tmGrammar.json"]}},"latex":false},"integrations":{"ga4":{"measurementId":"G-1VJRS53EWN"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ms2","hasAudioNarration":false,"actualSubdomain":"ms2","customDomains":["docs.credibledata.com"],"gitSource":{"type":"github","owner":"ms2data","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae92bd9fa8913e56b7a3613:success","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Admin API","count":107},{"language":"default","tag":"Data API","count":48},{"language":"default","tag":"Documentation","count":45},{"language":"default","tag":"connections","count":22},{"language":"default","tag":"groups","count":12},{"language":"default","tag":"packages","count":12},{"language":"default","tag":"Migrations","count":10},{"language":"default","tag":"environments","count":10},{"language":"default","tag":"Developers","count":8},{"language":"default","tag":"materializations","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Diatype Mono\";src:url(\"/fonts/ABCDiatypeMono-Regular.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}.prose p a:not(.card),.prose li a:not(.card),.prose td a:not(.card){color:#94793a;text-decoration:underline;text-underline-offset:3px}.prose p a:not(.card):hover,.prose li a:not(.card):hover,.prose td a:not(.card):hover{color:#1c1917}.dark .prose p a:not(.card),.dark .prose li a:not(.card),.dark .prose td a:not(.card){color:#c59611}.dark .prose p a:not(.card):hover,.dark .prose li a:not(.card):hover,.dark .prose td a:not(.card):hover{color:#fafaf9}.callout[data-callout-type=\"note\"],.callout[data-callout-type=\"info\"],.callout[data-callout-type=\"tip\"]{background-color:#f5f5f4;background-image:linear-gradient(to top, rgb(184 144 46 / 0.1), transparent);border-color:#e7e5e4}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg,.callout[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg,.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:#94793a}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"]{color:#44403c}.dark .callout[data-callout-type=\"note\"],.dark .callout[data-callout-type=\"info\"],.dark .callout[data-callout-type=\"tip\"]{background-color:#1c1917;background-image:linear-gradient(to top, rgb(184 144 46 / 0.12), transparent);border-color:#292524}.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg,.dark .callout[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg,.dark .callout[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:#c59611}.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"]{color:#d6d3d1}.callout[data-callout-type=\"warning\"],.dark .callout[data-callout-type=\"warning\"],.callout[data-callout-type=\"danger\"],.dark .callout[data-callout-type=\"danger\"]{background-color:oklch(0.1469 0.00413 49.25);background-image:none;border-color:rgb(255 255 255 / 0.1)}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg,.dark .callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg,.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg,.dark .callout[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg{color:oklch(0.7 0.14 85.525)}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"danger\"] [data-component-part=\"callout-content\"]{color:#d6d3d1}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"] strong,.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-content\"] strong{color:#fafaf9!important}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"] code,.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-content\"] code{background-color:rgb(255 255 255 / 0.1);border-color:rgb(255 255 255 / 0.15)}.sidebar-group-header{font-family:\"Diatype Mono\", \"SF Mono\", \"Fira Code\", monospace;font-size:0.7rem;font-weight:400;color:#94793a;text-transform:uppercase;letter-spacing:0.08em}.dark .sidebar-group-header{color:#c59611}"}]}
{"page":{"pagePath":"data-api-reference/packages/create-a-new-package","slug":"/data-api-reference/packages/create-a-new-package","pageMetadata":{"title":"Create a new package","description":"Creates a new Malloy package within the specified environment. A package serves as a\ncontainer for models, notebooks, embedded databases, and other resources. The package\nwill be initialized with the provided metadata and can immediately accept content.\n","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages","href":"/data-api-reference/packages/create-a-new-package","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new Malloy package within the specified environment. A package serves as a\\ncontainer for models, notebooks, embedded databases, and other resources. The package\\nwill be initialized with the provided metadata and can immediately accept content.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"languages":{"custom":["/languages/motly.tmGrammar.json","/languages/malloy.tmGrammar.json"]}},"config":{},"pageMetadata":{"title":"Create a new package","description":"Creates a new Malloy package within the specified environment. A package serves as a\ncontainer for models, notebooks, embedded databases, and other resources. The package\nwill be initialized with the provided metadata and can immediately accept content.\n","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages","href":"/data-api-reference/packages/create-a-new-package","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["packages"],"operationId":"create-package","summary":"Create a new package","description":"Creates a new Malloy package within the specified environment. A package serves as a\ncontainer for models, notebooks, embedded databases, and other resources. The package\nwill be initialized with the provided metadata and can immediately accept content.\n","parameters":["42278c63-df9a-4128-99da-2f33a8eceade"],"requestBody":"71194189-3fd6-4d2b-a7f3-96ccf066f36e","responses":{"200":"3b1ec159-f54f-4618-832f-9307bb1c070c","400":"ef4d5091-5f87-44ad-a2de-fee3fef77145","401":"7b71c44f-9ebc-4b33-839a-c943d5f41442","500":"d1caa601-0454-4a2e-9d25-b20f4168fa23","501":"473d2b2b-e270-4492-8715-e28484e50cda","503":"b0718912-c3c0-4b20-b479-b4101331ec1b"},"method":"post","type":"path","servers":["6550b039-70f2-4bb2-95e8-02a0c168a443"],"security":["3ee5b0f7-62c6-4467-9124-423da0a3a04a"],"path":"/environments/{environmentName}/packages","baseUrlOptions":["https://{organization}.data.credibledata.com/api/v0/"],"title":"Create a new package","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"42278c63-df9a-4128-99da-2f33a8eceade":{"name":"environmentName","in":"path","description":"Name of the environment","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","description":"Name of the environment\nStandard identifier pattern for resource names","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Represents a Malloy package containing models, notebooks, and embedded databases","properties":{"resource":{"type":"string","description":"Resource path to the package","uniqueKey":"resource","typeLabel":"string"},"name":{"type":"string","description":"Package name","uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","description":"Package description","uniqueKey":"description","typeLabel":"string"},"location":{"type":"string","description":"Package location, can be an absolute path or URI (e.g. github, s3, gcs, etc.)","uniqueKey":"location","typeLabel":"string"},"explores":{"type":"array","items":{"type":"string","uniqueKey":"explores.items.[INDEX]","typeLabel":"string"},"description":"Optional opt-in for curated discovery. When present, only these model file paths (relative to the package root) are listed via `listModels()`, and within-file discovery is filtered to each model's `export {}` closure. When absent or empty, every model is listed with its full source set (backward-compatible). Every other .malloy file still compiles for import/join resolution but is hidden from listings once `explores` is declared. Notebooks are always listed regardless of this field.","uniqueKey":"explores","typeLabel":"string[]"},"queryableSources":{"type":"string","enum":["declared","all"],"description":"Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files — and within them only the `export {}` closure — are valid top-level query targets; every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). `\"all\"` decouples them: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. When `explores` is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)`.","uniqueKey":"queryableSources","typeLabel":"enum\u003cstring>"},"manifestLocation":{"oneOf":[{"type":"string","description":"URI (gs:// or s3://) of the externally-computed manifest for this package.\nOn (re)load the publisher reads it and binds persist references\n(sourceEntityId -> physicalTableName). Null = serve live.\n","uniqueKey":"manifestLocation.oneOf.0","typeLabel":"string"},{"type":"null","description":"URI (gs:// or s3://) of the externally-computed manifest for this package.\nOn (re)load the publisher reads it and binds persist references\n(sourceEntityId -> physicalTableName). Null = serve live.\n","uniqueKey":"manifestLocation.oneOf.1","typeLabel":"null"}],"uniqueKey":"manifestLocation","typeLabel":"string | null"},"scope":{"type":"string","enum":["version","package"],"description":"Package-level materialization scope mode, declared at the malloy-publisher.json manifest root. Governs the lifetime/ownership of every persisted source and dimension index in the package, and replaces the removed per-source/per-dimension `sharing` annotation:\n - `version`: materializations are owned by (scoped to) the package\n version; no cross-version reuse. Cadence is a single\n package-level `materialization.schedule` OR freshness (never\n both).\n - `package`: materializations may be reused across the package's\n own versions when fresh; cadence is freshness only (no\n `schedule` allowed).\nNull/absent = unknown this request; the control plane treats it as the platform default (`package`) and never as a scope change. See docs/persistence.md §3.1.","uniqueKey":"scope","typeLabel":"enum\u003cstring>"},"materialization":{"oneOf":[{"type":"object","description":"Package-level Malloy Persistence policy declared in\nmalloy-publisher.json. The control plane reads it to drive scheduled\nre-materialization. The object is present whenever the package is\nloaded (with `schedule: null` when none is declared), so its\npresence is the authoritative manifest policy; null/absent means\nonly that metadata was unavailable this request, which the control\nplane treats as \"unknown\" (never a schedule removal). A published\nversion's schedule is persisted write-once and thereafter only\nverified, so it cannot self-wipe on a later build.\n","properties":{"schedule":{"oneOf":[{"type":"string","description":"5-field UNIX cron controlling how often the control plane re-materializes this package's published versions. Null/absent = no scheduled re-materialization (publish / on-demand only). A cron is valid only in `scope: version` mode and is mutually exclusive with any freshness declaration in the package (package/model-file/source/ index). A cron on a `scope: package` package, or alongside any freshness, is rejected at publish (declare `materialization.freshness.window` instead). See docs/persistence.md §9.4.","uniqueKey":"materialization.oneOf.0.schedule.oneOf.0","typeLabel":"string"},{"type":"null","description":"5-field UNIX cron controlling how often the control plane re-materializes this package's published versions. Null/absent = no scheduled re-materialization (publish / on-demand only). A cron is valid only in `scope: version` mode and is mutually exclusive with any freshness declaration in the package (package/model-file/source/ index). A cron on a `scope: package` package, or alongside any freshness, is rejected at publish (declare `materialization.freshness.window` instead). See docs/persistence.md §9.4.","uniqueKey":"materialization.oneOf.0.schedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization.oneOf.0.schedule","typeLabel":"string | null"},"freshness":{"oneOf":[{"type":"object","description":"The manifest's `materialization.freshness` block, verbatim. Null = no freshness policy declared. `window` is the control plane's refresh objective for the package's materialized sources; `fallback` is the declared query-time behavior when the objective is missed. The publisher only surfaces the values — the control plane owns the scheduling and gating logic.","properties":{"window":{"type":"string","description":"Maximum acceptable staleness of the package's materialized sources, as a duration string (e.g. \"24h\"). The control plane schedules refreshes to meet it.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.0.window","typeLabel":"string"},"fallback":{"type":"string","enum":["live","stale_ok","fail"],"description":"Declared query-time behavior when the freshness window is missed: serve live, serve the stale table, or fail the query.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.0.fallback","typeLabel":"enum\u003cstring>"}},"uniqueKey":"materialization.oneOf.0.freshness.oneOf.0","typeLabel":"object"},{"type":"null","description":"The manifest's `materialization.freshness` block, verbatim. Null = no freshness policy declared. `window` is the control plane's refresh objective for the package's materialized sources; `fallback` is the declared query-time behavior when the objective is missed. The publisher only surfaces the values — the control plane owns the scheduling and gating logic.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization.oneOf.0.freshness","typeLabel":"object | null"}},"uniqueKey":"materialization.oneOf.0","typeLabel":"object"},{"type":"null","description":"Package-level Malloy Persistence policy declared in\nmalloy-publisher.json. The control plane reads it to drive scheduled\nre-materialization. The object is present whenever the package is\nloaded (with `schedule: null` when none is declared), so its\npresence is the authoritative manifest policy; null/absent means\nonly that metadata was unavailable this request, which the control\nplane treats as \"unknown\" (never a schedule removal). A published\nversion's schedule is persisted write-once and thereafter only\nverified, so it cannot self-wipe on a later build.\n","uniqueKey":"materialization.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"resource":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","location":"\u003cstring>","explores":["\u003cstring>"],"manifestLocation":"\u003cstring>","materialization":{"schedule":"\u003cstring>","freshness":{"window":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3b1ec159-f54f-4618-832f-9307bb1c070c":{"description":"Returns the package created","content":{"application/json":{"schema":{"type":"object","description":"Represents a Malloy package containing models, notebooks, and embedded databases","properties":{"resource":{"type":"string","description":"Resource path to the package","uniqueKey":"resource","typeLabel":"string"},"name":{"type":"string","description":"Package name","uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","description":"Package description","uniqueKey":"description","typeLabel":"string"},"location":{"type":"string","description":"Package location, can be an absolute path or URI (e.g. github, s3, gcs, etc.)","uniqueKey":"location","typeLabel":"string"},"explores":{"type":"array","items":{"type":"string","uniqueKey":"explores.items.[INDEX]","typeLabel":"string"},"description":"Optional opt-in for curated discovery. When present, only these model file paths (relative to the package root) are listed via `listModels()`, and within-file discovery is filtered to each model's `export {}` closure. When absent or empty, every model is listed with its full source set (backward-compatible). Every other .malloy file still compiles for import/join resolution but is hidden from listings once `explores` is declared. Notebooks are always listed regardless of this field.","uniqueKey":"explores","typeLabel":"string[]"},"exploresWarnings":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"exploresWarnings.items.[INDEX]","typeLabel":"string"},"description":"Actionable messages for declared explores that do not resolve to a real model in this package (e.g. a misspelled path, or a notebook listed as an explore). Server-computed and read-only: it is ignored on create/update requests and only ever returned in responses. Present only when there are such problems. Loading is fail-safe — the unresolved entry simply lists nothing rather than exposing everything — so this is the signal that a package is misconfigured; publishing such a package is rejected.","uniqueKey":"exploresWarnings","typeLabel":"string[]"},"warnings":{"type":"array","readOnly":true,"description":"Non-fatal render-tag findings collected when the package loaded: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time but does not stop the model compiling or the package loading. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.","items":{"type":"object","properties":{"model":{"type":"string","description":"Package-relative path of the model the finding is on.","uniqueKey":"warnings.items.[INDEX].model","typeLabel":"string"},"target":{"type":"string","description":"The query or view the finding sits on, e.g. `by_carrier` or `flights -> by_carrier`.","uniqueKey":"warnings.items.[INDEX].target","typeLabel":"string"},"message":{"type":"string","description":"The render validator's description of the problem.","uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"severity":{"type":"string","enum":["error","warn"],"description":"Finding severity. Currently only `error`-severity render findings are surfaced here; lower-severity findings remain on the query-time `renderLogs` surface.","uniqueKey":"warnings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"},"queryableSources":{"type":"string","enum":["declared","all"],"description":"Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files — and within them only the `export {}` closure — are valid top-level query targets; every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). `\"all\"` decouples them: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. When `explores` is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)`.","uniqueKey":"queryableSources","typeLabel":"enum\u003cstring>"},"manifestLocation":{"oneOf":[{"type":"string","description":"URI (gs:// or s3://) of the externally-computed manifest for this package.\nOn (re)load the publisher reads it and binds persist references\n(sourceEntityId -> physicalTableName). Null = serve live.\n","uniqueKey":"manifestLocation.oneOf.0","typeLabel":"string"},{"type":"null","description":"URI (gs:// or s3://) of the externally-computed manifest for this package.\nOn (re)load the publisher reads it and binds persist references\n(sourceEntityId -> physicalTableName). Null = serve live.\n","uniqueKey":"manifestLocation.oneOf.1","typeLabel":"null"}],"uniqueKey":"manifestLocation","typeLabel":"string | null"},"scope":{"type":"string","enum":["version","package"],"description":"Package-level materialization scope mode, declared at the malloy-publisher.json manifest root. Governs the lifetime/ownership of every persisted source and dimension index in the package, and replaces the removed per-source/per-dimension `sharing` annotation:\n - `version`: materializations are owned by (scoped to) the package\n version; no cross-version reuse. Cadence is a single\n package-level `materialization.schedule` OR freshness (never\n both).\n - `package`: materializations may be reused across the package's\n own versions when fresh; cadence is freshness only (no\n `schedule` allowed).\nNull/absent = unknown this request; the control plane treats it as the platform default (`package`) and never as a scope change. See docs/persistence.md §3.1.","uniqueKey":"scope","typeLabel":"enum\u003cstring>"},"materialization":{"oneOf":[{"type":"object","description":"Package-level Malloy Persistence policy declared in\nmalloy-publisher.json. The control plane reads it to drive scheduled\nre-materialization. The object is present whenever the package is\nloaded (with `schedule: null` when none is declared), so its\npresence is the authoritative manifest policy; null/absent means\nonly that metadata was unavailable this request, which the control\nplane treats as \"unknown\" (never a schedule removal). A published\nversion's schedule is persisted write-once and thereafter only\nverified, so it cannot self-wipe on a later build.\n","properties":{"schedule":{"oneOf":[{"type":"string","description":"5-field UNIX cron controlling how often the control plane re-materializes this package's published versions. Null/absent = no scheduled re-materialization (publish / on-demand only). A cron is valid only in `scope: version` mode and is mutually exclusive with any freshness declaration in the package (package/model-file/source/ index). A cron on a `scope: package` package, or alongside any freshness, is rejected at publish (declare `materialization.freshness.window` instead). See docs/persistence.md §9.4.","uniqueKey":"materialization.oneOf.0.schedule.oneOf.0","typeLabel":"string"},{"type":"null","description":"5-field UNIX cron controlling how often the control plane re-materializes this package's published versions. Null/absent = no scheduled re-materialization (publish / on-demand only). A cron is valid only in `scope: version` mode and is mutually exclusive with any freshness declaration in the package (package/model-file/source/ index). A cron on a `scope: package` package, or alongside any freshness, is rejected at publish (declare `materialization.freshness.window` instead). See docs/persistence.md §9.4.","uniqueKey":"materialization.oneOf.0.schedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization.oneOf.0.schedule","typeLabel":"string | null"},"freshness":{"oneOf":[{"type":"object","description":"The manifest's `materialization.freshness` block, verbatim. Null = no freshness policy declared. `window` is the control plane's refresh objective for the package's materialized sources; `fallback` is the declared query-time behavior when the objective is missed. The publisher only surfaces the values — the control plane owns the scheduling and gating logic.","properties":{"window":{"type":"string","description":"Maximum acceptable staleness of the package's materialized sources, as a duration string (e.g. \"24h\"). The control plane schedules refreshes to meet it.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.0.window","typeLabel":"string"},"fallback":{"type":"string","enum":["live","stale_ok","fail"],"description":"Declared query-time behavior when the freshness window is missed: serve live, serve the stale table, or fail the query.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.0.fallback","typeLabel":"enum\u003cstring>"}},"uniqueKey":"materialization.oneOf.0.freshness.oneOf.0","typeLabel":"object"},{"type":"null","description":"The manifest's `materialization.freshness` block, verbatim. Null = no freshness policy declared. `window` is the control plane's refresh objective for the package's materialized sources; `fallback` is the declared query-time behavior when the objective is missed. The publisher only surfaces the values — the control plane owns the scheduling and gating logic.","uniqueKey":"materialization.oneOf.0.freshness.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization.oneOf.0.freshness","typeLabel":"object | null"}},"uniqueKey":"materialization.oneOf.0","typeLabel":"object"},{"type":"null","description":"Package-level Malloy Persistence policy declared in\nmalloy-publisher.json. The control plane reads it to drive scheduled\nre-materialization. The object is present whenever the package is\nloaded (with `schedule: null` when none is declared), so its\npresence is the authoritative manifest policy; null/absent means\nonly that metadata was unavailable this request, which the control\nplane treats as \"unknown\" (never a schedule removal). A published\nversion's schedule is persisted write-once and thereafter only\nverified, so it cannot self-wipe on a later build.\n","uniqueKey":"materialization.oneOf.1","typeLabel":"null"}],"uniqueKey":"materialization","typeLabel":"object | null"},"manifestBindingStatus":{"type":"string","readOnly":true,"enum":["unbound","bound","live_fallback"],"description":"Server-computed, read-only: whether the configured build manifest is currently bound to this package's served models. `unbound` = no manifest configured, so the package serves live. `bound` = a manifest was fetched and applied, so persist sources route to their materialized physical tables. `live_fallback` = a `manifestLocation` is configured but the fetch/bind failed or timed out, so the package is serving live despite intending to be materialized-routed. Lets the caller confirm the publisher actually bound the configured manifest rather than inferring it from logs.","uniqueKey":"manifestBindingStatus","typeLabel":"enum\u003cstring>"},"manifestEntryCount":{"type":"integer","readOnly":true,"description":"Server-computed, read-only: number of sourceEntityId -> physical-table entries currently bound (0 when unbound or on live fallback).","uniqueKey":"manifestEntryCount","typeLabel":"integer"},"boundManifestUri":{"oneOf":[{"type":"string","readOnly":true,"description":"Server-computed, read-only: the manifest URI actually bound to the served models. Usually equals `manifestLocation`, but can differ after an in-memory auto-load following a materialization build (no URI), in which case it is null. Null whenever the package is unbound.","uniqueKey":"boundManifestUri.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Server-computed, read-only: the manifest URI actually bound to the served models. Usually equals `manifestLocation`, but can differ after an in-memory auto-load following a materialization build (no URI), in which case it is null. Null whenever the package is unbound.","uniqueKey":"boundManifestUri.oneOf.1","typeLabel":"null"}],"uniqueKey":"boundManifestUri","typeLabel":"string | null"},"buildPlan":{"oneOf":[{"type":"object","description":"Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.","required":["graphs","sources"],"properties":{"graphs":{"type":"array","description":"Dependency-ordered build graphs, one per connection.","items":{"type":"object","required":["connectionName","nodes"],"properties":{"connectionName":{"type":"string","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].connectionName","typeLabel":"string"},"nodes":{"type":"array","description":"Leveled build nodes; each inner array is one parallelizable level, levels run in order.","items":{"type":"array","items":{"type":"object","required":["sourceID"],"properties":{"sourceID":{"type":"string","description":"sourceName@modelURL","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes.items.[INDEX].items.[INDEX].sourceID","typeLabel":"string"},"dependsOn":{"type":"array","description":"Upstream sourceIDs in this graph.","items":{"type":"string","uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes.items.[INDEX].items.[INDEX].dependsOn.items.[INDEX]","typeLabel":"string"},"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes.items.[INDEX].items.[INDEX].dependsOn","typeLabel":"string[]"}},"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes.items.[INDEX].items.[INDEX]","typeLabel":"object"},"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes.items.[INDEX]","typeLabel":"object[]"},"isRequired":true,"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX].nodes","typeLabel":"object[][]"}},"uniqueKey":"buildPlan.oneOf.0.graphs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"buildPlan.oneOf.0.graphs","typeLabel":"object[]"},"sources":{"type":"object","description":"Map of sourceID (\"sourceName@modelURL\") to per-source plan.","additionalProperties":{"type":"object","required":["name","sourceID","connectionName","sourceEntityId","sql","columns"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.name","typeLabel":"string"},"sourceID":{"type":"string","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.sourceID","typeLabel":"string"},"connectionName":{"type":"string","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.connectionName","typeLabel":"string"},"sourceEntityId":{"type":"string","description":"Stable, content-addressed identity of this persisted source. Today a deterministic SHA-256 hex digest (`mkBuildID`) over the source's connection `fingerprint` and its canonical compiled SQL — deliberately independent of package version, so it changes only when the source's data identity changes. (Folding source scope into the address and moving to a UUID5 form is planned but not yet shipped.) Consumers treat it as an opaque token and use the supplied value verbatim.","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.sourceEntityId","typeLabel":"string"},"sql":{"type":"string","description":"The source's build SQL (with the build manifest applied for upstream rewrites).","isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.sql","typeLabel":"string"},"columns":{"type":"array","description":"Output schema of the source.","items":{"type":"object","description":"Database column definition","properties":{"name":{"type":"string","description":"Name of the column","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.columns.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","description":"Data type of the column","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.columns.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.columns.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.columns","typeLabel":"object[]"},"dialect":{"type":"string","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.dialect","typeLabel":"string"},"refresh":{"oneOf":[{"type":"string","description":"The source's declared `#@ persist ... refresh=...` value (\"full\" | \"incremental\"), reported verbatim; null = unset. Metadata pass-through — inert to the publisher today.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.refresh.oneOf.0","typeLabel":"string"},{"type":"null","description":"The source's declared `#@ persist ... refresh=...` value (\"full\" | \"incremental\"), reported verbatim; null = unset. Metadata pass-through — inert to the publisher today.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.refresh.oneOf.1","typeLabel":"null"}],"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.refresh","typeLabel":"string | null"},"freshness":{"oneOf":[{"type":"object","description":"The source's EFFECTIVE freshness objective after most-specific-wins resolution (source > model-file > package). Null = unset at every level; the control plane applies the platform default. Reported verbatim (invalid fields dropped, never defaulted).","properties":{"window":{"type":"string","description":"Maximum acceptable staleness of the package's materialized sources, as a duration string (e.g. \"24h\"). The control plane schedules refreshes to meet it.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.freshness.oneOf.0.window","typeLabel":"string"},"fallback":{"type":"string","enum":["live","stale_ok","fail"],"description":"Declared query-time behavior when the freshness window is missed: serve live, serve the stale table, or fail the query.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.freshness.oneOf.0.fallback","typeLabel":"enum\u003cstring>"}},"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.freshness.oneOf.0","typeLabel":"object"},{"type":"null","description":"The source's EFFECTIVE freshness objective after most-specific-wins resolution (source > model-file > package). Null = unset at every level; the control plane applies the platform default. Reported verbatim (invalid fields dropped, never defaulted).","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.freshness.oneOf.1","typeLabel":"null"}],"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.freshness","typeLabel":"object | null"},"annotationFields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.annotationFields.additionalProperties","typeLabel":"string"},"description":"All key=value fields of the source's `#@ persist` annotation (e.g. `name`, `realization`). The control plane uses `name` as the materialized table name — it may carry a dialect container path (`dataset.table` / `project.dataset.table`) — falling back to the Malloy source name when absent.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.annotationFields","typeLabel":"object"},"modelPath":{"type":"string","description":"Package-relative path of the `.malloy` model that declares this source (e.g. `order_rollup.malloy`). The source's sourceID embeds an absolute `file://` modelURL with no package boundary, so this is the only place the relative path is exposed; the control plane uses it to let the build-plan DAG deep-link a source back to its model.","uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties.modelPath","typeLabel":"string"}},"uniqueKey":"buildPlan.oneOf.0.sources.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"buildPlan.oneOf.0.sources","typeLabel":"object"}},"uniqueKey":"buildPlan.oneOf.0","typeLabel":"object"},{"type":"null","description":"Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.","uniqueKey":"buildPlan.oneOf.1","typeLabel":"null"}],"uniqueKey":"buildPlan","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"resource":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","location":"\u003cstring>","explores":["\u003cstring>"],"exploresWarnings":["\u003cstring>"],"warnings":[{"model":"\u003cstring>","target":"\u003cstring>","message":"\u003cstring>","severity":"error"}],"queryableSources":"declared","manifestLocation":"\u003cstring>","scope":"version","materialization":{"schedule":"\u003cstring>","freshness":{"window":"\u003cstring>","fallback":"live"}},"manifestBindingStatus":"unbound","manifestEntryCount":123,"boundManifestUri":"\u003cstring>","buildPlan":{"graphs":[{"connectionName":"\u003cstring>","nodes":[[{"sourceID":"\u003cstring>","dependsOn":["\u003cstring>"]}]]}],"sources":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"ef4d5091-5f87-44ad-a2de-fee3fef77145":{"description":"The request was malformed or cannot be performed given the current state of the system","content":{"application/json":{"schema":{"type":"object","description":"Standard error response format","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details or context","uniqueKey":"details","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7b71c44f-9ebc-4b33-839a-c943d5f41442":{"description":"Unauthorized - authentication required","content":{"application/json":{"schema":{"type":"object","description":"Standard error response format","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details or context","uniqueKey":"details","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d1caa601-0454-4a2e-9d25-b20f4168fa23":{"description":"The server encountered an internal error","content":{"application/json":{"schema":{"type":"object","description":"Standard error response format","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details or context","uniqueKey":"details","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"473d2b2b-e270-4492-8715-e28484e50cda":{"description":"The requested operation is not implemented","content":{"application/json":{"schema":{"type":"object","description":"Standard error response format","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details or context","uniqueKey":"details","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b0718912-c3c0-4b20-b479-b4101331ec1b":{"description":"The service is temporarily unable to accept the request. Possible\ncauses:\n * Initialization or draining state (rolling updates, graceful\n shutdown).\n * Memory back-pressure — the publisher's RSS crossed the\n high-water mark derived from PUBLISHER_MAX_MEMORY_BYTES and\n PUBLISHER_MEMORY_HIGH_WATER_FRACTION, so new queries are\n rejected until RSS drops below the low-water mark\n (PUBLISHER_MEMORY_LOW_WATER_FRACTION).\n * Per-pod query concurrency cap reached — PUBLISHER_MAX_CONCURRENT_QUERIES\n in-flight queries are already running on this pod.\nClients should retry with backoff; under sustained pressure, scale\nout, raise PUBLISHER_MAX_MEMORY_BYTES / PUBLISHER_MAX_CONCURRENT_QUERIES,\nor refine the offending queries.\n","content":{"application/json":{"schema":{"type":"object","description":"Standard error response format","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details or context","uniqueKey":"details","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3ee5b0f7-62c6-4467-9124-423da0a3a04a":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"6550b039-70f2-4bb2-95e8-02a0c168a443":{"url":"https://{organization}.data.credibledata.com/api/v0/","description":"Production API server","variables":{"organization":{"default":"demo","description":"Your organization subdomain"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"dataplane-public-api-doc.yaml"},"subdomain":"ms2","siteName":"Credible Data","title":"Create a new package - Credible Data","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-22T15:21:42.382Z","originalFileLocation":"data-api-reference/packages/create-a-new-package.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Credible Data\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new package - Credible Data\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Credible Data\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ms2.mintlify.site/_mintlify/api/og/v2?division=packages\u0026amp;title=Create+a+new+package\u0026amp;description=Creates+a+new+Malloy+package+within+the+specified+environment.+A+package+serves+as+a%0Acontainer+for+models%2C+notebooks%2C+embedded+databases%2C+and+other+resources.+T\u0026amp;theme=e50db41faf46dc5fd93bc9e7\u0026amp;signature=d5290c53af4e852f1cdfed37d89aa96d7222681a44bdadaf163c76d255f87e06\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new package - Credible Data\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ms2.mintlify.site/_mintlify/api/og/v2?division=packages\u0026amp;title=Create+a+new+package\u0026amp;description=Creates+a+new+Malloy+package+within+the+specified+environment.+A+package+serves+as+a%0Acontainer+for+models%2C+notebooks%2C+embedded+databases%2C+and+other+resources.+T\u0026amp;theme=e50db41faf46dc5fd93bc9e7\u0026amp;signature=d5290c53af4e852f1cdfed37d89aa96d7222681a44bdadaf163c76d255f87e06\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ms2/NM28tWzZJEULG7Pw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Credible Data\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#94793A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/data-api-reference/packages/create-a-new-package.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.credibledata.com/#organization\",\"name\":\"Credible Data\",\"url\":\"https://docs.credibledata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ms2/1t8kfeYj1pwIH2EO/logo/light.svg?fit=max\u0026auto=format\u0026n=1t8kfeYj1pwIH2EO\u0026q=85\u0026s=9c2da46c5a0f1db44806cebf2c34c165\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.credibledata.com#website\",\"name\":\"Credible Data\",\"url\":\"https://docs.credibledata.com\",\"publisher\":{\"@id\":\"https://docs.credibledata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package#webpage\",\"url\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package\",\"name\":\"Create a new package\",\"description\":\"Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.\",\"dateModified\":\"2026-07-22T15:21:42.382Z\",\"isPartOf\":{\"@id\":\"https://docs.credibledata.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"packages\",\"item\":\"https://docs.credibledata.com/data-api-reference/packages/list-environment-packages\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new package\",\"item\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package#apireference\",\"headline\":\"Create a new package\",\"name\":\"Create a new package\",\"description\":\"Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.\",\"url\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package\",\"mainEntityOfPage\":{\"@id\":\"https://docs.credibledata.com/data-api-reference/packages/create-a-new-package#webpage\"},\"dateModified\":\"2026-07-22T15:21:42.382Z\",\"publisher\":{\"@id\":\"https://docs.credibledata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.credibledata.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Credible Data\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Credible Data\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/data-api-reference/packages/create-a-new-package.md","siteName":"Credible Data","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Admin API","pages":[{"title":"Admin API","href":"/admin-api-reference"}]},{"tab":"Data API","groups":[{"group":"Overview","pages":[{"title":"Data API Reference","href":"/data-api-reference"}]},{"group":"publisher","pages":[{"title":"Get server status and health information","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /status","href":"/data-api-reference/publisher/get-server-status-and-health-information"}]},{"group":"environments","pages":[{"title":"List all available environments","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments","href":"/data-api-reference/environments/list-all-available-environments"},{"title":"Create a new environment","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments","href":"/data-api-reference/environments/create-a-new-environment"},{"title":"Get environment details and metadata","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}","href":"/data-api-reference/environments/get-environment-details-and-metadata"},{"title":"Delete an environment","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml delete /environments/{environmentName}","href":"/data-api-reference/environments/delete-an-environment"},{"title":"Update environment configuration","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml patch /environments/{environmentName}","href":"/data-api-reference/environments/update-environment-configuration"}]},{"group":"connections","pages":[{"title":"List environment database connections","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/connections","href":"/data-api-reference/connections/list-environment-database-connections"},{"title":"Get connection details","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/connections/{connectionName}","href":"/data-api-reference/connections/get-connection-details"},{"title":"Create a new database connection","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/connections/{connectionName}","href":"/data-api-reference/connections/create-a-new-database-connection"},{"title":"Delete a database connection","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml delete /environments/{environmentName}/connections/{connectionName}","href":"/data-api-reference/connections/delete-a-database-connection"},{"title":"Update an existing database connection","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml patch /environments/{environmentName}/connections/{connectionName}","href":"/data-api-reference/connections/update-an-existing-database-connection"},{"title":"List database schemas","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/connections/{connectionName}/schemas","href":"/data-api-reference/connections/list-database-schemas"},{"title":"List tables in database","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables","href":"/data-api-reference/connections/list-tables-in-database"},{"title":"Get table details from database","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}","href":"/data-api-reference/connections/get-table-details-from-database"},{"title":"Create SQL source from statement","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/connections/{connectionName}/sqlSource","href":"/data-api-reference/connections/create-sql-source-from-statement"},{"title":"Execute SQL query","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/connections/{connectionName}/sqlQuery","href":"/data-api-reference/connections/execute-sql-query"},{"title":"Create temporary table","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable","href":"/data-api-reference/connections/create-temporary-table"},{"title":"List database schemas (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas","href":"/data-api-reference/connections/list-database-schemas-per-package"},{"title":"List tables in database (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables","href":"/data-api-reference/connections/list-tables-in-database-per-package"},{"title":"Get table details from database (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}","href":"/data-api-reference/connections/get-table-details-from-database-per-package"},{"title":"Create SQL source from statement (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource","href":"/data-api-reference/connections/create-sql-source-from-statement-per-package"},{"title":"Execute SQL query (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery","href":"/data-api-reference/connections/execute-sql-query-per-package"},{"title":"Create temporary table (per-package)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable","href":"/data-api-reference/connections/create-temporary-table-per-package"}]},{"group":"packages","pages":[{"title":"List environment packages","description":"Retrieves a list of all Malloy packages within the specified environment. Each package\ncontains models, notebooks, databases, and other resources. This endpoint is useful\nfor discovering available packages and their basic metadata.\n","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages","href":"/data-api-reference/packages/list-environment-packages"},{"title":"Create a new package","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages","href":"/data-api-reference/packages/create-a-new-package"},{"title":"Get package details and metadata","description":"Retrieves detailed information about a specific package, including its models, notebooks,\ndatabases, and metadata. The reload parameter can be used to refresh the package state\nfrom disk before returning the information. The versionId parameter allows access to\nspecific package versions.\n","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}","href":"/data-api-reference/packages/get-package-details-and-metadata"},{"title":"Delete a package","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml delete /environments/{environmentName}/packages/{packageName}","href":"/data-api-reference/packages/delete-a-package"},{"title":"Update package configuration","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml patch /environments/{environmentName}/packages/{packageName}","href":"/data-api-reference/packages/update-package-configuration"}]},{"group":"models","pages":[{"title":"List package models","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/models","href":"/data-api-reference/models/list-package-models"},{"title":"Get compiled Malloy model","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/models/{path}","href":"/data-api-reference/models/get-compiled-malloy-model"},{"title":"Execute Malloy query","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/models/{path}/query","href":"/data-api-reference/models/execute-malloy-query"},{"title":"Compile Malloy source code","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/models/{path}/compile","href":"/data-api-reference/models/compile-malloy-source-code"}]},{"group":"notebooks","pages":[{"title":"List package notebooks","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/notebooks","href":"/data-api-reference/notebooks/list-package-notebooks"},{"title":"Get Malloy notebook cells","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/notebooks/{path}","href":"/data-api-reference/notebooks/get-malloy-notebook-cells"},{"title":"Execute a specific notebook cell","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}","href":"/data-api-reference/notebooks/execute-a-specific-notebook-cell"}]},{"group":"databases","pages":[{"title":"List embedded databases","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/databases","href":"/data-api-reference/databases/list-embedded-databases"}]},{"group":"pages","pages":[{"title":"List package pages","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/pages","href":"/data-api-reference/pages/list-package-pages"}]},{"group":"watch-mode","pages":[{"title":"Stream package change events (SSE)","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/events","href":"/data-api-reference/watch-mode/stream-package-change-events-sse"},{"title":"Get watch mode status","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /watch-mode/status","href":"/data-api-reference/watch-mode/get-watch-mode-status"},{"title":"Start file watching","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /watch-mode/start","href":"/data-api-reference/watch-mode/start-file-watching"},{"title":"Stop file watching","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /watch-mode/stop","href":"/data-api-reference/watch-mode/stop-file-watching"}]},{"group":"connectionsTest","pages":[{"title":"Test database connection configuration","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /connections/test","href":"/data-api-reference/connectionstest/test-database-connection-configuration"}]},{"group":"materializations","pages":[{"title":"List materializations for a package","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/materializations","href":"/data-api-reference/materializations/list-materializations-for-a-package"},{"title":"Create a materialization","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/materializations","href":"/data-api-reference/materializations/create-a-materialization"},{"title":"Get a specific materialization","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml get /environments/{environmentName}/packages/{packageName}/materializations/{materializationId}","href":"/data-api-reference/materializations/get-a-specific-materialization"},{"title":"Perform an action on a materialization","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml post /environments/{environmentName}/packages/{packageName}/materializations/{materializationId}","href":"/data-api-reference/materializations/perform-an-action-on-a-materialization"},{"title":"Delete a materialization","deprecated":null,"version":null,"openapi":"/dataplane-public-api-doc.yaml delete /environments/{environmentName}/packages/{packageName}/materializations/{materializationId}","href":"/data-api-reference/materializations/delete-a-materialization"}]}]},{"tab":"Retrieval API","pages":[{"title":"Retrieval API","href":"/retrieval-api-reference"}]},{"tab":"Coding API","pages":[{"title":"Coding API","href":"/coding-api-reference"}]}]},"basePath":"","title":"Create a new package - Credible Data","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}