Create a run (rebuild a version, or a single scoped unit)
Starts a run for this package’s version identified by versionId. By
default (no scope selectors) it is a full run that re-materializes every
persist source in the version and rebuilds every indexed dimension it
defines — one run driving both unit families through the same two-phase
build (tables first, then indexes). It is the on-demand equivalent of the
run a publish triggers.
The optional sourceName / dimension / modelFilePath selectors (see
CreateRunRequest) narrow the run to a single unit (Phase C per-unit
dispatch); a null selector widens back to the whole version, so the
whole-version full run stays the default. A version that predates the
content-addressed index model is discovered and migrated into it as part
of the run. The produced
units are surfaced in the run’s build plan (buildPlan.nodes/edges on
getRun), each advancing its own serving pointer independently (a failed
unit does not block the others). Returns the started run.
Scheduled packages reject scoped runs. When the version’s package
declares a materialization.schedule (legal only in scope: version), it
refreshes the whole version atomically on its cron, so the only on-demand
rebuild it supports is the whole-version full run. A request that carries
any scope selector (sourceName / dimension / modelFilePath) against a
scheduled version is rejected with 400 rather than silently widened — omit
the selectors to refresh the whole version instead.
Authorization: Requires update access to the package.
POST
/
organizations
/
{organizationName}
/
environments
/
{environmentName}
/
packages
/
{packageName}
/
runs
Create a run (rebuild a version, or a single scoped unit)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
organizationName
string
required
The unique identifier of the organization
Standard identifier pattern for resource names
Pattern: ^[a-zA-Z0-9_ -]+$
environmentName
string
required
The unique identifier of the environment
Standard identifier pattern for resource names
Pattern: ^[a-zA-Z0-9_ -]+$
packageName
string
required
The unique identifier of the package
Standard identifier pattern for resource names
Pattern: ^[a-zA-Z0-9_ -]+$
Body
application/json
Request a run for a version. By default (no scope selectors) this is a
full run: re-materialize every persist source in the version and rebuild
every indexed dimension it defines, in one run. The optional
sourceName / dimension / modelFilePath selectors narrow the run to a
single unit (Phase C per-unit dispatch); a null selector widens to the
whole version, so the whole-version full run stays the default.
versionId
string
required
The version to (re)build. With no scope selectors the run
re-materializes all of the version's persist sources and rebuilds all
of the dimensions they define. A version that predates the
content-addressed index model is discovered and migrated into it as
part of the same run.
sourceName
string
Optional. Restrict the run to a single persist source's table (Phase
C per-source dispatch). The named source is force-rebuilt (a fresh
generation at the same content address); its persist upstreams are
referenced from their existing materialized tables, not rebuilt (unless
includeUpstream is set). Null widens to every persist source in the
version.
includeUpstream
boolean
default:false
Optional. Only meaningful when the target resolves to a source
(sourceName set — for a source rerun, or an index rerun that also names
its source). When true, the run also force-rebuilds the target's
transitive upstream persisted sources (its full derivation closure), so
the whole lineage feeding the target is refreshed rather than referenced
from existing tables:
source target: rebuild the source and every persisted source it
derives from.
index target (dimension set): rebuild the source table the index
reads from and its upstream closure, then re-index.
When false (default): a source target rebuilds only that source (its
upstreams reused); an index target reuses the source table and only
re-indexes. Ignored for a full run or a dimension target that names no
source.
dimension
string
Optional. Restrict the run to a single indexed dimension's index.
Combined with sourceName it targets that dimension on that source;
alone it targets the dimension across the sources that define it
(disambiguated by modelFilePath when set). Null widens to every
indexed dimension in scope.
modelFilePath
string
Optional. Disambiguates a dimension defined in more than one model
file. Null widens to every model file defining the matched dimension.
Response
Run created (build started)
A package-level build/refresh event (version-independent) — the single,
unified run resource. It records the requested scope and correlates the
dispatch; its concrete units are the typed artifacts it produced —
materialized sources (source nodes) and built indexes (index nodes) —
surfaced in the run's build plan (buildPlan.nodes/edges, populated on
getRun). A run defaults to a full run spanning both families — a
publish, an on-demand rebuild, and a scheduled re-materialization all
refresh a version's tables and its indexes — but may also be scoped to a
single unit (Phase C per-unit dispatch). Each produced unit advances its
own serving pointer independently, so a partial failure leaves the run
READY while the failed unit carries its own error.
id
string
buildNumber
integer
Stable, 1-based build ordinal within the package — the "Build gNNN"
the UI shows (zero-padded for display). Monotonic per package, assigned
at run creation. This is the run build number, NOT the per-source
physical table generation (the g in a materialized table name),
which counts per-source rebuilds and diverges under reuse. Null only for
legacy runs created before the number existed.
trigger
enum<string>
Available options:
PUBLISH,
ON_DEMAND,
SCHEDULER
status
enum<string>
Run lifecycle status, rolled up from the units it produced.
Non-terminal: BUILDING. Terminal: READY, FAILED, CANCELLED. A run is
READY once every produced unit is terminal; individual unit failures
are carried per node in the run's build plan (buildPlan.nodes, on getRun).
Available options:
BUILDING,
READY,
FAILED,
CANCELLED
targetSourceName
string
Requested target source (Phase C per-unit dispatch). Null on a whole-version run (the createRun default); set when createRun scoped the run to a single source via the sourceName selector. A null component widens to the whole package.
targetDimension
string
Requested target dimension (Phase C per-unit dispatch). Null on a whole-version run; set when createRun scoped the run to a single indexed dimension via the dimension selector.
targetModelFilePath
string
Requested target model file (Phase C per-unit dispatch). Null on a whole-version run; disambiguates a dimension defined in more than one model file when the modelFilePath selector is set.
targetIncludeUpstream
boolean
The scoped rerun's upstream choice (Phase C). Only meaningful with
targetSourceName/targetDimension: when true, the rerun also
force-rebuilt the target's transitive upstream persisted closure
(rather than reusing those upstream tables); false / absent = the
target alone (a source references its upstreams, an index reuses its
source table). Always false on a whole-version run.
triggeringVersionId
string
The version this run was started for — the version whose publish drove a
PUBLISH run, the version an on-demand full run rebuilds, or the version a
scheduled re-materialization refreshes. Provenance only: the run itself is
package-scoped and may impact other versions that bind the same dimension.
Null only for a future package-level scoped refresh with no single
initiating version.
buildPlan
object
A run's build plan across both unit families. Two layers:
A diagnostic summary (counters + name lists): how many persist
sources (table units) and indexed dimensions (index units) it planned,
and their outcomes. Always populated (on both listRuns and getRun).
A stateful dependency graph (nodes + edges): one node per source
(materialized table) and per indexed dimension, each carrying that unit's
live state, wired source -> index. Populated on getRun only; null on
listRuns to keep the list payload small (mirrors how Version.buildPlan
is getVersion-only). This graph is the single source of truth for a
run's units — the internal content address (entity_id) is never exposed.
Show child attributes
startedAt
string<date-time>
completedAt
string<date-time>
error
string
Run-level failure reason (planning/orchestration failure); per-unit failures live on the produced units.
createdAt
string<date-time>
updatedAt
string<date-time>
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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":"admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit","slug":"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit","pageMetadata":{"title":"Create a run (rebuild a version, or a single scoped unit)","description":"Starts a run for this package's version identified by `versionId`. By\ndefault (no scope selectors) it is a **full run** that re-materializes every\npersist source in the version **and** rebuilds every indexed dimension it\ndefines — one run driving both unit families through the same two-phase\nbuild (tables first, then indexes). It is the on-demand equivalent of the\nrun a publish triggers.\n\nThe optional `sourceName` / `dimension` / `modelFilePath` selectors (see\n`CreateRunRequest`) narrow the run to a single unit (Phase C per-unit\ndispatch); a null selector widens back to the whole version, so the\nwhole-version full run stays the default. A version that predates the\ncontent-addressed index model is discovered and migrated into it as part\nof the run. The produced\nunits are surfaced in the run's build plan (`buildPlan.nodes`/`edges` on\n`getRun`), each advancing its own serving pointer independently (a failed\nunit does not block the others). Returns the started run.\n\n**Scheduled packages reject scoped runs.** When the version's package\ndeclares a `materialization.schedule` (legal only in `scope: version`), it\nrefreshes the whole version atomically on its cron, so the only on-demand\nrebuild it supports is the whole-version full run. A request that carries\nany scope selector (`sourceName` / `dimension` / `modelFilePath`) against a\nscheduled version is rejected with `400` rather than silently widened — omit\nthe selectors to refresh the whole version instead.\n\n**Authorization**: Requires update access to the package.\n","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs","href":"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Starts a run for this package’s version identified by \", _jsx(_components.code, {\n children: \"versionId\"\n }), \". By\\ndefault (no scope selectors) it is a \", _jsx(_components.strong, {\n children: \"full run\"\n }), \" that re-materializes every\\npersist source in the version \", _jsx(_components.strong, {\n children: \"and\"\n }), \" rebuilds every indexed dimension it\\ndefines — one run driving both unit families through the same two-phase\\nbuild (tables first, then indexes). It is the on-demand equivalent of the\\nrun a publish triggers.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The optional \", _jsx(_components.code, {\n children: \"sourceName\"\n }), \" / \", _jsx(_components.code, {\n children: \"dimension\"\n }), \" / \", _jsx(_components.code, {\n children: \"modelFilePath\"\n }), \" selectors (see\\n\", _jsx(_components.code, {\n children: \"CreateRunRequest\"\n }), \") narrow the run to a single unit (Phase C per-unit\\ndispatch); a null selector widens back to the whole version, so the\\nwhole-version full run stays the default. A version that predates the\\ncontent-addressed index model is discovered and migrated into it as part\\nof the run. The produced\\nunits are surfaced in the run’s build plan (\", _jsx(_components.code, {\n children: \"buildPlan.nodes\"\n }), \"/\", _jsx(_components.code, {\n children: \"edges\"\n }), \" on\\n\", _jsx(_components.code, {\n children: \"getRun\"\n }), \"), each advancing its own serving pointer independently (a failed\\nunit does not block the others). Returns the started run.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Scheduled packages reject scoped runs.\"\n }), \" When the version’s package\\ndeclares a \", _jsx(_components.code, {\n children: \"materialization.schedule\"\n }), \" (legal only in \", _jsx(_components.code, {\n children: \"scope: version\"\n }), \"), it\\nrefreshes the whole version atomically on its cron, so the only on-demand\\nrebuild it supports is the whole-version full run. A request that carries\\nany scope selector (\", _jsx(_components.code, {\n children: \"sourceName\"\n }), \" / \", _jsx(_components.code, {\n children: \"dimension\"\n }), \" / \", _jsx(_components.code, {\n children: \"modelFilePath\"\n }), \") against a\\nscheduled version is rejected with \", _jsx(_components.code, {\n children: \"400\"\n }), \" rather than silently widened — omit\\nthe selectors to refresh the whole version instead.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authorization\"\n }), \": Requires update access to the package.\"]\n })]\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 run (rebuild a version, or a single scoped unit)","description":"Starts a run for this package's version identified by `versionId`. By\ndefault (no scope selectors) it is a **full run** that re-materializes every\npersist source in the version **and** rebuilds every indexed dimension it\ndefines — one run driving both unit families through the same two-phase\nbuild (tables first, then indexes). It is the on-demand equivalent of the\nrun a publish triggers.\n\nThe optional `sourceName` / `dimension` / `modelFilePath` selectors (see\n`CreateRunRequest`) narrow the run to a single unit (Phase C per-unit\ndispatch); a null selector widens back to the whole version, so the\nwhole-version full run stays the default. A version that predates the\ncontent-addressed index model is discovered and migrated into it as part\nof the run. The produced\nunits are surfaced in the run's build plan (`buildPlan.nodes`/`edges` on\n`getRun`), each advancing its own serving pointer independently (a failed\nunit does not block the others). Returns the started run.\n\n**Scheduled packages reject scoped runs.** When the version's package\ndeclares a `materialization.schedule` (legal only in `scope: version`), it\nrefreshes the whole version atomically on its cron, so the only on-demand\nrebuild it supports is the whole-version full run. A request that carries\nany scope selector (`sourceName` / `dimension` / `modelFilePath`) against a\nscheduled version is rejected with `400` rather than silently widened — omit\nthe selectors to refresh the whole version instead.\n\n**Authorization**: Requires update access to the package.\n","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs","href":"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["runs"],"summary":"Create a run (rebuild a version, or a single scoped unit)","description":"Starts a run for this package's version identified by `versionId`. By\ndefault (no scope selectors) it is a **full run** that re-materializes every\npersist source in the version **and** rebuilds every indexed dimension it\ndefines — one run driving both unit families through the same two-phase\nbuild (tables first, then indexes). It is the on-demand equivalent of the\nrun a publish triggers.\n\nThe optional `sourceName` / `dimension` / `modelFilePath` selectors (see\n`CreateRunRequest`) narrow the run to a single unit (Phase C per-unit\ndispatch); a null selector widens back to the whole version, so the\nwhole-version full run stays the default. A version that predates the\ncontent-addressed index model is discovered and migrated into it as part\nof the run. The produced\nunits are surfaced in the run's build plan (`buildPlan.nodes`/`edges` on\n`getRun`), each advancing its own serving pointer independently (a failed\nunit does not block the others). Returns the started run.\n\n**Scheduled packages reject scoped runs.** When the version's package\ndeclares a `materialization.schedule` (legal only in `scope: version`), it\nrefreshes the whole version atomically on its cron, so the only on-demand\nrebuild it supports is the whole-version full run. A request that carries\nany scope selector (`sourceName` / `dimension` / `modelFilePath`) against a\nscheduled version is rejected with `400` rather than silently widened — omit\nthe selectors to refresh the whole version instead.\n\n**Authorization**: Requires update access to the package.\n","operationId":"createRun","parameters":["cb679ccd-6ad5-4d40-bf24-289587ed7b17","dd0aab93-dc21-46f6-a8bd-7a382cc42137","960d78b4-0b02-4b32-b26e-60df1877581d"],"requestBody":"d609d4df-8324-49e0-adf6-08c36ac7bb1a","responses":{"202":"df85c9fb-173f-47a3-935b-73d214e73474","400":"9574fe65-316a-4f6c-9f01-e83a6431912a","401":"ecc66f61-6b5e-4628-af3f-1a2570df0cea","403":"55926696-4702-497e-ae85-c994244c2434","404":"629e4292-796e-4ea1-b521-afc402a6aca7","409":"ba515b08-14e7-489b-8552-12ce5cb9e525","503":"70cd480e-568e-4ec5-b1a5-8ddb0fa14845"},"method":"post","type":"path","servers":["2b8a1621-5516-4e59-845f-abd2159b4190"],"security":["bc5d6729-cb95-40f3-897f-1d2d6b543758"],"path":"/organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs","baseUrlOptions":["https://{organization}.admin.credibledata.com/api/v0/"],"title":"Create a run (rebuild a version, or a single scoped unit)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"cb679ccd-6ad5-4d40-bf24-289587ed7b17":{"name":"organizationName","in":"path","required":true,"description":"The unique identifier of the organization","schema":{"type":"string","pattern":"^[a-zA-Z0-9_ -]+$","description":"The unique identifier of the organization\nStandard identifier pattern for resource names","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"dd0aab93-dc21-46f6-a8bd-7a382cc42137":{"name":"environmentName","in":"path","required":true,"description":"The unique identifier of the environment","schema":{"type":"string","pattern":"^[a-zA-Z0-9_ -]+$","description":"The unique identifier of the environment\nStandard identifier pattern for resource names","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"960d78b4-0b02-4b32-b26e-60df1877581d":{"name":"packageName","in":"path","required":true,"description":"The unique identifier of the package","schema":{"type":"string","pattern":"^[a-zA-Z0-9_ -]+$","description":"The unique identifier of the package\nStandard identifier pattern for resource names","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request a run for a version. By default (no scope selectors) this is a\nfull run: re-materialize every persist source in the version and rebuild\nevery indexed dimension it defines, in one run. The optional\nsourceName / dimension / modelFilePath selectors narrow the run to a\nsingle unit (Phase C per-unit dispatch); a null selector widens to the\nwhole version, so the whole-version full run stays the default.\n","required":["versionId"],"properties":{"versionId":{"type":"string","description":"The version to (re)build. With no scope selectors the run\nre-materializes all of the version's persist sources and rebuilds all\nof the dimensions they define. A version that predates the\ncontent-addressed index model is discovered and migrated into it as\npart of the same run.\n","isRequired":true,"uniqueKey":"versionId","typeLabel":"string"},"sourceName":{"type":"string","description":"Optional. Restrict the run to a single persist source's table (Phase\nC per-source dispatch). The named source is force-rebuilt (a fresh\ngeneration at the same content address); its persist upstreams are\nreferenced from their existing materialized tables, not rebuilt (unless\nincludeUpstream is set). Null widens to every persist source in the\nversion.\n","uniqueKey":"sourceName","typeLabel":"string"},"includeUpstream":{"type":"boolean","default":false,"description":"Optional. Only meaningful when the target resolves to a source\n(sourceName set — for a source rerun, or an index rerun that also names\nits source). When true, the run also force-rebuilds the target's\ntransitive upstream persisted sources (its full derivation closure), so\nthe whole lineage feeding the target is refreshed rather than referenced\nfrom existing tables:\n - source target: rebuild the source and every persisted source it\n derives from.\n - index target (dimension set): rebuild the source table the index\n reads from and its upstream closure, then re-index.\nWhen false (default): a source target rebuilds only that source (its\nupstreams reused); an index target reuses the source table and only\nre-indexes. Ignored for a full run or a dimension target that names no\nsource.\n","uniqueKey":"includeUpstream","typeLabel":"boolean"},"dimension":{"type":"string","description":"Optional. Restrict the run to a single indexed dimension's index.\nCombined with sourceName it targets that dimension on that source;\nalone it targets the dimension across the sources that define it\n(disambiguated by modelFilePath when set). Null widens to every\nindexed dimension in scope.\n","uniqueKey":"dimension","typeLabel":"string"},"modelFilePath":{"type":"string","description":"Optional. Disambiguates a dimension defined in more than one model\nfile. Null widens to every model file defining the matched dimension.\n","uniqueKey":"modelFilePath","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"versionId":"\u003cstring>","sourceName":"\u003cstring>","includeUpstream":false,"dimension":"\u003cstring>","modelFilePath":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"df85c9fb-173f-47a3-935b-73d214e73474":{"description":"Run created (build started)","content":{"application/json":{"schema":{"type":"object","description":"A package-level build/refresh event (version-independent) — the single,\nunified run resource. It records the requested scope and correlates the\ndispatch; its concrete units are the typed artifacts it produced —\nmaterialized sources (source nodes) and built indexes (index nodes) —\nsurfaced in the run's build plan (`buildPlan.nodes`/`edges`, populated on\n`getRun`). A run defaults to a full run spanning both families — a\npublish, an on-demand rebuild, and a scheduled re-materialization all\nrefresh a version's tables and its indexes — but may also be scoped to a\nsingle unit (Phase C per-unit dispatch). Each produced unit advances its\nown serving pointer independently, so a partial failure leaves the run\nREADY while the failed unit carries its own error.\n","properties":{"id":{"type":"string","uniqueKey":"id","typeLabel":"string"},"buildNumber":{"type":"integer","description":"Stable, 1-based build ordinal within the **package** — the \"Build gNNN\"\nthe UI shows (zero-padded for display). Monotonic per package, assigned\nat run creation. This is the run build number, NOT the per-source\nphysical table generation (the g\u003cseq> in a materialized table name),\nwhich counts per-source rebuilds and diverges under reuse. Null only for\nlegacy runs created before the number existed.\n","uniqueKey":"buildNumber","typeLabel":"integer"},"trigger":{"type":"string","enum":["PUBLISH","ON_DEMAND","SCHEDULER"],"uniqueKey":"trigger","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"Run lifecycle status, rolled up from the units it produced.\nNon-terminal: BUILDING. Terminal: READY, FAILED, CANCELLED. A run is\nREADY once every produced unit is terminal; individual unit failures\nare carried per node in the run's build plan (`buildPlan.nodes`, on `getRun`).\n","enum":["BUILDING","READY","FAILED","CANCELLED"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"targetSourceName":{"type":"string","description":"Requested target source (Phase C per-unit dispatch). Null on a whole-version run (the createRun default); set when createRun scoped the run to a single source via the sourceName selector. A null component widens to the whole package.","uniqueKey":"targetSourceName","typeLabel":"string"},"targetDimension":{"type":"string","description":"Requested target dimension (Phase C per-unit dispatch). Null on a whole-version run; set when createRun scoped the run to a single indexed dimension via the dimension selector.","uniqueKey":"targetDimension","typeLabel":"string"},"targetModelFilePath":{"type":"string","description":"Requested target model file (Phase C per-unit dispatch). Null on a whole-version run; disambiguates a dimension defined in more than one model file when the modelFilePath selector is set.","uniqueKey":"targetModelFilePath","typeLabel":"string"},"targetIncludeUpstream":{"type":"boolean","description":"The scoped rerun's upstream choice (Phase C). Only meaningful with\n`targetSourceName`/`targetDimension`: when true, the rerun also\nforce-rebuilt the target's transitive upstream persisted closure\n(rather than reusing those upstream tables); false / absent = the\ntarget alone (a source references its upstreams, an index reuses its\nsource table). Always false on a whole-version run.\n","uniqueKey":"targetIncludeUpstream","typeLabel":"boolean"},"triggeringVersionId":{"type":"string","description":"The version this run was started for — the version whose publish drove a\nPUBLISH run, the version an on-demand full run rebuilds, or the version a\nscheduled re-materialization refreshes. Provenance only: the run itself is\npackage-scoped and may impact other versions that bind the same dimension.\nNull only for a future package-level scoped refresh with no single\ninitiating version.\n","uniqueKey":"triggeringVersionId","typeLabel":"string"},"buildPlan":{"type":"object","description":"A run's build plan across both unit families. Two layers:\n\n1. A diagnostic **summary** (counters + name lists): how many persist\n sources (table units) and indexed dimensions (index units) it planned,\n and their outcomes. Always populated (on both `listRuns` and `getRun`).\n2. A stateful **dependency graph** (`nodes` + `edges`): one node per source\n (materialized table) and per indexed dimension, each carrying that unit's\n live state, wired source -> index. Populated on `getRun` only; null on\n `listRuns` to keep the list payload small (mirrors how `Version.buildPlan`\n is `getVersion`-only). This graph is the single source of truth for a\n run's units — the internal content address (entity_id) is never exposed.\n","properties":{"sourceCount":{"type":"integer","description":"Number of persist sources (table units) in the run's build plan.","uniqueKey":"buildPlan.sourceCount","typeLabel":"integer"},"builtSources":{"type":"array","description":"Sources that produced a fresh table this run.","items":{"type":"string","uniqueKey":"buildPlan.builtSources.items.[INDEX]","typeLabel":"string"},"uniqueKey":"buildPlan.builtSources","typeLabel":"string[]"},"reusedSources":{"type":"array","description":"Sources whose existing table was reused this run (their definition and inputs were unchanged, so no rebuild was needed).","items":{"type":"string","uniqueKey":"buildPlan.reusedSources.items.[INDEX]","typeLabel":"string"},"uniqueKey":"buildPlan.reusedSources","typeLabel":"string[]"},"unsupportedSources":{"type":"array","description":"Sources skipped because the connection dialect can't materialize them.","items":{"type":"string","uniqueKey":"buildPlan.unsupportedSources.items.[INDEX]","typeLabel":"string"},"uniqueKey":"buildPlan.unsupportedSources","typeLabel":"string[]"},"failedSources":{"type":"object","description":"Source name -> failure reason, for sources that errored this run.","additionalProperties":{"type":"string","uniqueKey":"buildPlan.failedSources.additionalProperties","typeLabel":"string"},"uniqueKey":"buildPlan.failedSources","typeLabel":"object"},"dimensionCount":{"type":"integer","description":"Number of indexed dimensions (index units) this run produced/refreshed.","uniqueKey":"buildPlan.dimensionCount","typeLabel":"integer"},"builtDimensions":{"type":"array","description":"Dimensions that produced a READY index this run.","items":{"type":"string","uniqueKey":"buildPlan.builtDimensions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"buildPlan.builtDimensions","typeLabel":"string[]"},"failedDimensions":{"type":"object","description":"Dimension -> failure reason, for dimensions that failed this run.","additionalProperties":{"type":"string","uniqueKey":"buildPlan.failedDimensions.additionalProperties","typeLabel":"string"},"uniqueKey":"buildPlan.failedDimensions","typeLabel":"object"},"nodes":{"type":"array","description":"The build plan's stateful graph nodes: one per source (materialized\ntable) and per indexed dimension, each carrying that unit's live state.\nPopulated on `getRun` only; null/absent on `listRuns`.\n","items":{"type":"object","description":"One node in a run's build-plan graph, discriminated by `nodeType`. A SOURCE\nnode is a persist source (materialized when this run produced a physical\ntable for it); an INDEX node is a built index for one `(source, dimension)`.\nCarries the unit's live state; fields not relevant to a node's type are null.\nThe internal content address (entity_id) is never exposed.\n","properties":{"key":{"type":"string","description":"Stable within-graph identity used by `RunBuildPlanEdge`. Source nodes are\nkeyed by source name; index nodes by their `source.dimension (modelFile)`\ncoordinate — so a discovered-but-not-yet-built dimension still has a key.\n","uniqueKey":"buildPlan.nodes.items.[INDEX].key","typeLabel":"string"},"id":{"type":"string","description":"The backing record's UUID (materialized table or index anchor/artifact),\nfor deep-linking. Null for a discovered dimension with no artifact yet.\n","uniqueKey":"buildPlan.nodes.items.[INDEX].id","typeLabel":"string"},"nodeType":{"type":"string","description":"Which family this node is — SOURCE (materialized source) or INDEX (built index).","enum":["SOURCE","INDEX"],"uniqueKey":"buildPlan.nodes.items.[INDEX].nodeType","typeLabel":"enum\u003cstring>"},"sourceName":{"type":"string","description":"The persist source (SOURCE) or the source that owns the dimension (INDEX).","uniqueKey":"buildPlan.nodes.items.[INDEX].sourceName","typeLabel":"string"},"status":{"type":"string","description":"Per-run WORK lifecycle for this node — the state of the work THIS run\ndoes on it, not the underlying artifact's steady state. PENDING: the run\nis in flight and this unit's build hasn't started. BUILDING: this run is\nactively (re)materializing/(re)indexing it. DONE: this run's build\ncommitted (or, on a full run, reaffirmed an unchanged artifact). FAILED:\nthis run's build errored (see `error`). A scoped rerun's graph carries\nonly the units it works on, so every node walks PENDING -> BUILDING ->\nDONE/FAILED as the run progresses.\n","enum":["PENDING","BUILDING","DONE","FAILED"],"uniqueKey":"buildPlan.nodes.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"materialized":{"type":"boolean","description":"SOURCE nodes only. True when this run produced a physical table for the\nsource; false for a source that only surfaces via an indexed dimension\n(e.g. a live/non-persisted twin) so its index nodes aren't orphaned.\n","uniqueKey":"buildPlan.nodes.items.[INDEX].materialized","typeLabel":"boolean"},"tableName":{"type":"string","description":"Physical table name of the materialized source, an immutable generation\n(e.g. orders_ab12_v3). SOURCE nodes only; null for INDEX nodes.\n","uniqueKey":"buildPlan.nodes.items.[INDEX].tableName","typeLabel":"string"},"modelFilePath":{"type":"string","description":"The model file this dimension was discovered under, to distinguish two\nsame-named dimensions from different files. INDEX nodes only.\n","uniqueKey":"buildPlan.nodes.items.[INDEX].modelFilePath","typeLabel":"string"},"dimension":{"type":"string","description":"The indexed dimension path (e.g. \"country\" or \"people.name\"). INDEX nodes only; null for SOURCE nodes.","uniqueKey":"buildPlan.nodes.items.[INDEX].dimension","typeLabel":"string"},"rowCount":{"type":"integer","format":"int64","description":"Indexed value count, reported by the pipeline on completion. INDEX nodes only; null until READY or for SOURCE nodes.","uniqueKey":"buildPlan.nodes.items.[INDEX].rowCount","typeLabel":"integer\u003cint64>"},"lastIndexedAt":{"type":"string","format":"date-time","description":"When this index generation finished building. INDEX nodes only; null until READY or for SOURCE nodes.","uniqueKey":"buildPlan.nodes.items.[INDEX].lastIndexedAt","typeLabel":"string\u003cdate-time>"},"error":{"type":"string","description":"Failure reason when a node's unit failed; null otherwise.","uniqueKey":"buildPlan.nodes.items.[INDEX].error","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"buildPlan.nodes.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"buildPlan.nodes.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"buildPlan.nodes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"buildPlan.nodes","typeLabel":"object[]"},"edges":{"type":"array","description":"Dependency edges over `nodes`, keyed by node `key`. Carries source ->\nindex edges (each indexed dimension depends on its owning source) and\nsource -> source table lineage (from the run's durable build plan's\nderivation DAG). Populated on `getRun` only; null/absent on `listRuns`.\n","items":{"type":"object","description":"A dependency edge over the run's build-plan nodes — \"from\" must be built before \"to\".","properties":{"from":{"type":"string","description":"Upstream node `key` (a dependency, e.g. a source).","uniqueKey":"buildPlan.edges.items.[INDEX].from","typeLabel":"string"},"to":{"type":"string","description":"Downstream node `key` that depends on \"from\" (e.g. an index on that source).","uniqueKey":"buildPlan.edges.items.[INDEX].to","typeLabel":"string"}},"uniqueKey":"buildPlan.edges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"buildPlan.edges","typeLabel":"object[]"}},"uniqueKey":"buildPlan","typeLabel":"object"},"startedAt":{"type":"string","format":"date-time","uniqueKey":"startedAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"type":"string","format":"date-time","uniqueKey":"completedAt","typeLabel":"string\u003cdate-time>"},"error":{"type":"string","description":"Run-level failure reason (planning/orchestration failure); per-unit failures live on the produced units.","uniqueKey":"error","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","buildNumber":123,"trigger":"PUBLISH","status":"BUILDING","targetSourceName":"\u003cstring>","targetDimension":"\u003cstring>","targetModelFilePath":"\u003cstring>","targetIncludeUpstream":true,"triggeringVersionId":"\u003cstring>","buildPlan":{"sourceCount":123,"builtSources":["\u003cstring>"],"reusedSources":["\u003cstring>"],"unsupportedSources":["\u003cstring>"],"failedSources":{},"dimensionCount":123,"builtDimensions":["\u003cstring>"],"failedDimensions":{},"nodes":[{"key":"\u003cstring>","id":"\u003cstring>","nodeType":"SOURCE","sourceName":"\u003cstring>","status":"PENDING","materialized":true,"tableName":"\u003cstring>","modelFilePath":"\u003cstring>","dimension":"\u003cstring>","rowCount":123,"lastIndexedAt":"2023-11-07T05:31:56Z","error":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}],"edges":[{"from":"\u003cstring>","to":"\u003cstring>"}]},"startedAt":"2023-11-07T05:31:56Z","completedAt":"2023-11-07T05:31:56Z","error":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"9574fe65-316a-4f6c-9f01-e83a6431912a":{"description":"The request was malformed or can not be performed given the state of the system.","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ecc66f61-6b5e-4628-af3f-1a2570df0cea":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"55926696-4702-497e-ae85-c994244c2434":{"description":"Can not perform the operation due to insufficient permissions or the state of the system.","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"629e4292-796e-4ea1-b521-afc402a6aca7":{"description":"The specified resource was not found.","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ba515b08-14e7-489b-8552-12ce5cb9e525":{"description":"A run is already in flight for this version","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"70cd480e-568e-4ec5-b1a5-8ddb0fa14845":{"description":"No worker is currently available to run the build. Worker capacity is an internal, transient condition (not a client error), so this is retryable — retry shortly.","content":{"application/json":{"schema":{"type":"object","x-model-name":"ModelError","description":"Standard error response format used across all API endpoints","properties":{"code":{"type":"string","description":"Machine-readable error code that identifies the specific error condition.\nClients should branch on `code`, not on the human-readable `message` —\nthe message text is informational and may change over time.\n\nGeneric codes (may appear on any endpoint):\n- `VALIDATION_ERROR`: Request body or path/query parameter failed validation\n- `AUTHENTICATION_REQUIRED`: Valid authentication is required\n- `INSUFFICIENT_PERMISSIONS`: User lacks required permissions\n- `RESOURCE_NOT_FOUND`: Requested resource does not exist\n- `CONFLICT`: Generic resource state conflict (used when no more specific code applies)\n- `RATE_LIMIT_EXCEEDED`: API rate limit exceeded\n- `INTERNAL_ERROR`: Unexpected server error\n\nEndpoint-specific codes used by the signup / invites flow:\n- `ORGANIZATION_NAME_TAKEN`: 409 on `POST /organizations` — the requested\n org name (URL slug) is already in use. Retry with a different name.\n- `ORGANIZATION_NAME_RESERVED`: 409 on `POST /organizations` — the requested\n org name collides with a platform subdomain (e.g. `signup`, `admin`,\n `data`, `login`) and cannot be claimed. Retry with a different name.\n- `INVITE_ALREADY_CONSUMED`: 409 on `POST /organizations` — the supplied\n invite token has already been redeemed into an existing organization.\n Retry will not help; the token is dead.\n- `INVITE_ALREADY_CONSUMED_REVOKE`: 409 on `DELETE /invites/{token}` —\n consumed invites are preserved for audit and cannot be revoked.\n- `INVITE_INVALID`: 400 on `POST /organizations` — the supplied invite\n token is malformed or unknown.\n- `INVITE_EXPIRED`: 400 on `POST /organizations` — the supplied invite\n token is past its `expiresAt`.\n- `INVITE_EMAIL_MISMATCH`: 403 on `POST /organizations` — the invite is\n bound to a different email address than the caller.\n","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message providing details about what went wrong","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bc5d6729-cb95-40f3-897f-1d2d6b543758":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"2b8a1621-5516-4e59-845f-abd2159b4190":{"url":"https://{organization}.admin.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":"controlplane-public-api-doc.yaml"},"subdomain":"ms2","siteName":"Credible Data","title":"Create a run (rebuild a version, or a single scoped unit) - Credible Data","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-22T15:21:41.196Z","originalFileLocation":"admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit.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=\"Starts a run for this package\u0026#x27;s version identified by versionId. By default (no scope selectors) it is a full run that re-materializes every persist source in the version and rebuilds every indexed dimension it defines — one run driving both unit families through the same two-phase build (tables first, then indexes). It is the on-demand equivalent of the run a publish triggers. The optional sourceName / dimension / modelFilePath selectors (see CreateRunRequest) narrow the run to a single unit (Phase C per-unit dispatch); a null selector widens back to the whole version, so the whole-version full run stays the default. A version that predates the content-addressed index model is discovered and migrated into it as part of the run. The produced units are surfaced in the run\u0026#x27;s build plan (buildPlan.nodes/edges on getRun), each advancing its own serving pointer independently (a failed unit does not block the others). Returns the started run. Scheduled packages reject scoped runs. When the version\u0026#x27;s package declares a materialization.schedule (legal only in scope: version), it refreshes the whole version atomically on its cron, so the only on-demand rebuild it supports is the whole-version full run. A request that carries any scope selector (sourceName / dimension / modelFilePath) against a scheduled version is rejected with 400 rather than silently widened — omit the selectors to refresh the whole version instead. Authorization: Requires update access to the package.\">\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 run (rebuild a version, or a single scoped unit) - Credible Data\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts a run for this package\u0026#x27;s version identified by versionId. By default (no scope selectors) it is a full run that re-materializes every persist source in the version and rebuilds every indexed dimension it defines — one run driving both unit families through the same two-phase build (tables first, then indexes). It is the on-demand equivalent of the run a publish triggers. The optional sourceName / dimension / modelFilePath selectors (see CreateRunRequest) narrow the run to a single unit (Phase C per-unit dispatch); a null selector widens back to the whole version, so the whole-version full run stays the default. A version that predates the content-addressed index model is discovered and migrated into it as part of the run. The produced units are surfaced in the run\u0026#x27;s build plan (buildPlan.nodes/edges on getRun), each advancing its own serving pointer independently (a failed unit does not block the others). Returns the started run. Scheduled packages reject scoped runs. When the version\u0026#x27;s package declares a materialization.schedule (legal only in scope: version), it refreshes the whole version atomically on its cron, so the only on-demand rebuild it supports is the whole-version full run. A request that carries any scope selector (sourceName / dimension / modelFilePath) against a scheduled version is rejected with 400 rather than silently widened — omit the selectors to refresh the whole version instead. Authorization: Requires update access to the package.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Credible Data\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit\">\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=runs\u0026amp;title=Create+a+run+%28rebuild+a+version%2C+or+a+single+scoped+unit%29\u0026amp;description=Starts+a+run+for+this+package%27s+version+identified+by+%60versionId%60.+By%0Adefault+%28no+scope+selectors%29+it+is+a+**full+run**+that+re-materializes+every%0Apersist+sourc\u0026amp;theme=e50db41faf46dc5fd93bc9e7\u0026amp;signature=b95dd20d09052b752049ef13706fc917b51d038d36a079461d3639a8cbd26e7c\">\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 run (rebuild a version, or a single scoped unit) - Credible Data\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts a run for this package\u0026#x27;s version identified by versionId. By default (no scope selectors) it is a full run that re-materializes every persist source in the version and rebuilds every indexed dimension it defines — one run driving both unit families through the same two-phase build (tables first, then indexes). It is the on-demand equivalent of the run a publish triggers. The optional sourceName / dimension / modelFilePath selectors (see CreateRunRequest) narrow the run to a single unit (Phase C per-unit dispatch); a null selector widens back to the whole version, so the whole-version full run stays the default. A version that predates the content-addressed index model is discovered and migrated into it as part of the run. The produced units are surfaced in the run\u0026#x27;s build plan (buildPlan.nodes/edges on getRun), each advancing its own serving pointer independently (a failed unit does not block the others). Returns the started run. Scheduled packages reject scoped runs. When the version\u0026#x27;s package declares a materialization.schedule (legal only in scope: version), it refreshes the whole version atomically on its cron, so the only on-demand rebuild it supports is the whole-version full run. A request that carries any scope selector (sourceName / dimension / modelFilePath) against a scheduled version is rejected with 400 rather than silently widened — omit the selectors to refresh the whole version instead. Authorization: Requires update access to the package.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ms2.mintlify.site/_mintlify/api/og/v2?division=runs\u0026amp;title=Create+a+run+%28rebuild+a+version%2C+or+a+single+scoped+unit%29\u0026amp;description=Starts+a+run+for+this+package%27s+version+identified+by+%60versionId%60.+By%0Adefault+%28no+scope+selectors%29+it+is+a+**full+run**+that+re-materializes+every%0Apersist+sourc\u0026amp;theme=e50db41faf46dc5fd93bc9e7\u0026amp;signature=b95dd20d09052b752049ef13706fc917b51d038d36a079461d3639a8cbd26e7c\">\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/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit.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/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit#webpage\",\"url\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit\",\"name\":\"Create a run (rebuild a version, or a single scoped unit)\",\"description\":\"Starts a run for this package's version identified by versionId. By default (no scope selectors) it is a full run that re-materializes every persist source in the version and rebuilds every indexed dimension it defines — one run driving both unit families through the same two-phase build (tables first, then indexes). It is the on-demand equivalent of the run a publish triggers. The optional sourceName / dimension / modelFilePath selectors (see CreateRunRequest) narrow the run to a single unit (Phase C per-unit dispatch); a null selector widens back to the whole version, so the whole-version full run stays the default. A version that predates the content-addressed index model is discovered and migrated into it as part of the run. The produced units are surfaced in the run's build plan (buildPlan.nodes/edges on getRun), each advancing its own serving pointer independently (a failed unit does not block the others). Returns the started run. Scheduled packages reject scoped runs. When the version's package declares a materialization.schedule (legal only in scope: version), it refreshes the whole version atomically on its cron, so the only on-demand rebuild it supports is the whole-version full run. A request that carries any scope selector (sourceName / dimension / modelFilePath) against a scheduled version is rejected with 400 rather than silently widened — omit the selectors to refresh the whole version instead. Authorization: Requires update access to the package.\",\"dateModified\":\"2026-07-22T15:21:41.196Z\",\"isPartOf\":{\"@id\":\"https://docs.credibledata.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"runs\",\"item\":\"https://docs.credibledata.com/admin-api-reference/runs/list-runs-for-a-package\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a run (rebuild a version, or a single scoped unit)\",\"item\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit#apireference\",\"headline\":\"Create a run (rebuild a version, or a single scoped unit)\",\"name\":\"Create a run (rebuild a version, or a single scoped unit)\",\"description\":\"Starts a run for this package's version identified by versionId. By default (no scope selectors) it is a full run that re-materializes every persist source in the version and rebuilds every indexed dimension it defines — one run driving both unit families through the same two-phase build (tables first, then indexes). It is the on-demand equivalent of the run a publish triggers. The optional sourceName / dimension / modelFilePath selectors (see CreateRunRequest) narrow the run to a single unit (Phase C per-unit dispatch); a null selector widens back to the whole version, so the whole-version full run stays the default. A version that predates the content-addressed index model is discovered and migrated into it as part of the run. The produced units are surfaced in the run's build plan (buildPlan.nodes/edges on getRun), each advancing its own serving pointer independently (a failed unit does not block the others). Returns the started run. Scheduled packages reject scoped runs. When the version's package declares a materialization.schedule (legal only in scope: version), it refreshes the whole version atomically on its cron, so the only on-demand rebuild it supports is the whole-version full run. A request that carries any scope selector (sourceName / dimension / modelFilePath) against a scheduled version is rejected with 400 rather than silently widened — omit the selectors to refresh the whole version instead. Authorization: Requires update access to the package.\",\"url\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit\",\"mainEntityOfPage\":{\"@id\":\"https://docs.credibledata.com/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit#webpage\"},\"dateModified\":\"2026-07-22T15:21:41.196Z\",\"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":"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit.md","siteName":"Credible Data","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Admin API","groups":[{"group":"Overview","pages":[{"title":"Admin API Reference","href":"/admin-api-reference"}]},{"group":"organizations","pages":[{"title":"List all organizations","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations","href":"/admin-api-reference/organizations/list-all-organizations"},{"title":"Create a new organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations","href":"/admin-api-reference/organizations/create-a-new-organization"},{"title":"Get organization details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}","href":"/admin-api-reference/organizations/get-organization-details"},{"title":"Delete an organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}","href":"/admin-api-reference/organizations/delete-an-organization"},{"title":"Update organization details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}","href":"/admin-api-reference/organizations/update-organization-details"},{"title":"List users in organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/users","href":"/admin-api-reference/organizations/list-users-in-organization"},{"title":"Get user within organization context","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/users/{userName}","href":"/admin-api-reference/organizations/get-user-within-organization-context"}]},{"group":"organizationPermissions","pages":[{"title":"List organization permissions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/permissions","href":"/admin-api-reference/organizationpermissions/list-organization-permissions"},{"title":"Create organization permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/permissions","href":"/admin-api-reference/organizationpermissions/create-organization-permission"},{"title":"Get organization permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/permissions/{userGroupId}","href":"/admin-api-reference/organizationpermissions/get-organization-permission"},{"title":"Delete organization permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/permissions/{userGroupId}","href":"/admin-api-reference/organizationpermissions/delete-organization-permission"},{"title":"Update organization permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/permissions/{userGroupId}","href":"/admin-api-reference/organizationpermissions/update-organization-permission"}]},{"group":"packages","pages":[{"title":"List accessible packages by organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/packages","href":"/admin-api-reference/packages/list-accessible-packages-by-organization"},{"title":"List packages in environment","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages","href":"/admin-api-reference/packages/list-packages-in-environment"},{"title":"Get package details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}","href":"/admin-api-reference/packages/get-package-details"},{"title":"Create or update package","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}","href":"/admin-api-reference/packages/create-or-update-package"},{"title":"Delete package","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}","href":"/admin-api-reference/packages/delete-package"},{"title":"Update package metadata","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}","href":"/admin-api-reference/packages/update-package-metadata"},{"title":"Get package version source","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/source","href":"/admin-api-reference/packages/get-package-version-source"}]},{"group":"environments","pages":[{"title":"List environments in organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments","href":"/admin-api-reference/environments/list-environments-in-organization"},{"title":"Create a new environment","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments","href":"/admin-api-reference/environments/create-a-new-environment"},{"title":"Get environment details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}","href":"/admin-api-reference/environments/get-environment-details"},{"title":"Delete environment","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/environments/{environmentName}","href":"/admin-api-reference/environments/delete-environment"},{"title":"Update environment details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}","href":"/admin-api-reference/environments/update-environment-details"}]},{"group":"environmentPermissions","pages":[{"title":"List environment permissions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/permissions","href":"/admin-api-reference/environmentpermissions/list-environment-permissions"},{"title":"Create environment permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/permissions","href":"/admin-api-reference/environmentpermissions/create-environment-permission"},{"title":"Get environment permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/permissions/{userGroupId}","href":"/admin-api-reference/environmentpermissions/get-environment-permission"},{"title":"Delete environment permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/environments/{environmentName}/permissions/{userGroupId}","href":"/admin-api-reference/environmentpermissions/delete-environment-permission"},{"title":"Update environment permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}/permissions/{userGroupId}","href":"/admin-api-reference/environmentpermissions/update-environment-permission"}]},{"group":"packagePermissions","pages":[{"title":"List package permissions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/permissions","href":"/admin-api-reference/packagepermissions/list-package-permissions"},{"title":"Create package permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/permissions","href":"/admin-api-reference/packagepermissions/create-package-permission"},{"title":"Get package permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/permissions/{userGroupId}","href":"/admin-api-reference/packagepermissions/get-package-permission"},{"title":"Delete package permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/permissions/{userGroupId}","href":"/admin-api-reference/packagepermissions/delete-package-permission"},{"title":"Update package permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/permissions/{userGroupId}","href":"/admin-api-reference/packagepermissions/update-package-permission"}]},{"group":"versions","pages":[{"title":"List package versions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions","href":"/admin-api-reference/versions/list-package-versions"},{"title":"Get version details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}","href":"/admin-api-reference/versions/get-version-details"},{"title":"Update version status","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}","href":"/admin-api-reference/versions/update-version-status"}]},{"group":"connections","pages":[{"title":"List database connections","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/connections","href":"/admin-api-reference/connections/list-database-connections"},{"title":"Create database connection","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/connections","href":"/admin-api-reference/connections/create-database-connection"},{"title":"Get connection details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/connections/{connectionName}","href":"/admin-api-reference/connections/get-connection-details"},{"title":"Delete database connection","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/environments/{environmentName}/connections/{connectionName}","href":"/admin-api-reference/connections/delete-database-connection"},{"title":"Update database connection","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/environments/{environmentName}/connections/{connectionName}","href":"/admin-api-reference/connections/update-database-connection"}]},{"group":"materializations","pages":[{"title":"List materializations for a version","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}/materializations","href":"/admin-api-reference/materializations/list-materializations-for-a-version"},{"title":"Get a materialization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}/materializations/{materializationId}","href":"/admin-api-reference/materializations/get-a-materialization"}]},{"group":"indexes","pages":[{"title":"List indexes for a version","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}/indexes","href":"/admin-api-reference/indexes/list-indexes-for-a-version"},{"title":"Get an index","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/versions/{versionId}/indexes/{indexId}","href":"/admin-api-reference/indexes/get-an-index"}]},{"group":"runs","pages":[{"title":"List runs for a package","description":"Lists build/refresh runs for this package, most recent first. A run is a\nsingle **package-level** build event carrying typed units — materialized\nsources (table units) and built indexes (index units). A run defaults to a\nfull run spanning both families — a publish, an on-demand rebuild, and a\nscheduled re-materialization all refresh a version's tables and its indexes\n— but may also be scoped to a single unit (Phase C per-unit dispatch). Runs\nare version-independent: their artifacts may be shared across\nversions.\n\nOptional filters narrow the list:\n * `versionId` — only runs that *impacted* the given version (i.e. whose\n triggering publish was that version, or that built/refreshed a unit the\n version binds). This is a derived view, not a stored scope; a refresh\n with no triggering publish can still impact a version, and one run can\n impact many.\n * `sourceName` / `dimension` — only runs targeting that source/dimension.\n\n**Authorization**: Requires read access to the package.\n","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs","href":"/admin-api-reference/runs/list-runs-for-a-package"},{"title":"Create a run (rebuild a version, or a single scoped unit)","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs","href":"/admin-api-reference/runs/create-a-run-rebuild-a-version-or-a-single-scoped-unit"},{"title":"Get a run","description":null,"deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs/{runId}","href":"/admin-api-reference/runs/get-a-run"},{"title":"Perform an action on a run","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/environments/{environmentName}/packages/{packageName}/runs/{runId}","href":"/admin-api-reference/runs/perform-an-action-on-a-run"}]},{"group":"workspaces","pages":[{"title":"List workspaces in organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces","href":"/admin-api-reference/workspaces/list-workspaces-in-organization"},{"title":"Create a new workspace","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/workspaces","href":"/admin-api-reference/workspaces/create-a-new-workspace"},{"title":"Get or create personal workspace","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/personal","href":"/admin-api-reference/workspaces/get-or-create-personal-workspace"},{"title":"Get workspace details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}","href":"/admin-api-reference/workspaces/get-workspace-details"},{"title":"Delete workspace","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/workspaces/{workspaceName}","href":"/admin-api-reference/workspaces/delete-workspace"},{"title":"Update workspace details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/workspaces/{workspaceName}","href":"/admin-api-reference/workspaces/update-workspace-details"}]},{"group":"workspacePermissions","pages":[{"title":"List workspace permissions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/permissions","href":"/admin-api-reference/workspacepermissions/list-workspace-permissions"},{"title":"Create workspace permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/workspaces/{workspaceName}/permissions","href":"/admin-api-reference/workspacepermissions/create-workspace-permission"},{"title":"Adds package access to a workspace","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/workspaces/{workspaceName}/packages","href":"/admin-api-reference/workspacepermissions/adds-package-access-to-a-workspace"},{"title":"Removes package access from a workspace","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/workspaces/{workspaceName}/packages","href":"/admin-api-reference/workspacepermissions/removes-package-access-from-a-workspace"},{"title":"Get workspace permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/permissions/{userGroupId}","href":"/admin-api-reference/workspacepermissions/get-workspace-permission"},{"title":"Delete workspace permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/workspaces/{workspaceName}/permissions/{userGroupId}","href":"/admin-api-reference/workspacepermissions/delete-workspace-permission"},{"title":"Update workspace permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/workspaces/{workspaceName}/permissions/{userGroupId}","href":"/admin-api-reference/workspacepermissions/update-workspace-permission"}]},{"group":"documents","pages":[{"title":"List workspace documents","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/documents","href":"/admin-api-reference/documents/list-workspace-documents"},{"title":"Create document","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/workspaces/{workspaceName}/documents","href":"/admin-api-reference/documents/create-document"},{"title":"Get document details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}","href":"/admin-api-reference/documents/get-document-details"},{"title":"Delete document","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}","href":"/admin-api-reference/documents/delete-document"},{"title":"Update document","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}","href":"/admin-api-reference/documents/update-document"}]},{"group":"documentPermissions","pages":[{"title":"List document permissions","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}/permissions","href":"/admin-api-reference/documentpermissions/list-document-permissions"},{"title":"Create document permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}/permissions","href":"/admin-api-reference/documentpermissions/create-document-permission"},{"title":"Get document permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}/permissions/{userGroupId}","href":"/admin-api-reference/documentpermissions/get-document-permission"},{"title":"Delete document permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}/permissions/{userGroupId}","href":"/admin-api-reference/documentpermissions/delete-document-permission"},{"title":"Update document permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/workspaces/{workspaceName}/documents/{documentPath}/permissions/{userGroupId}","href":"/admin-api-reference/documentpermissions/update-document-permission"}]},{"group":"groups","pages":[{"title":"List organization groups","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/groups","href":"/admin-api-reference/groups/list-organization-groups"},{"title":"Create user group","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/groups","href":"/admin-api-reference/groups/create-user-group"},{"title":"Get group details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/groups/{groupName}","href":"/admin-api-reference/groups/get-group-details"},{"title":"Delete user group","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/groups/{groupName}","href":"/admin-api-reference/groups/delete-user-group"},{"title":"Update group configuration","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/groups/{groupName}","href":"/admin-api-reference/groups/update-group-configuration"},{"title":"Get group members","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/groups/{groupName}/members","href":"/admin-api-reference/groups/get-group-members"},{"title":"Add group members","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/groups/{groupName}/members","href":"/admin-api-reference/groups/add-group-members"},{"title":"Remove group members","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/groups/{groupName}/members","href":"/admin-api-reference/groups/remove-group-members"},{"title":"Update group member status","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /organizations/{organizationName}/groups/{groupName}/members/{memberName}","href":"/admin-api-reference/groups/update-group-member-status"},{"title":"List group tokens","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/groups/{groupName}/tokens","href":"/admin-api-reference/groups/list-group-tokens"},{"title":"Create a new group token","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/groups/{groupName}/tokens","href":"/admin-api-reference/groups/create-a-new-group-token"},{"title":"Delete a group token","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/groups/{groupName}/tokens/{tokenName}","href":"/admin-api-reference/groups/delete-a-group-token"}]},{"group":"bookmarks","pages":[{"title":"List bookmarks for current user","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/bookmarks","href":"/admin-api-reference/bookmarks/list-bookmarks-for-current-user"},{"title":"Create a new bookmark","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /organizations/{organizationName}/bookmarks","href":"/admin-api-reference/bookmarks/create-a-new-bookmark"},{"title":"Get a specific bookmark","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/bookmarks/{bookmarkType}","href":"/admin-api-reference/bookmarks/get-a-specific-bookmark"},{"title":"Delete a bookmark","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/bookmarks/{bookmarkType}","href":"/admin-api-reference/bookmarks/delete-a-bookmark"}]},{"group":"attributes","pages":[{"title":"List trusted attributes and their assigned values","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/attributes","href":"/admin-api-reference/attributes/list-trusted-attributes-and-their-assigned-values"},{"title":"Get a trusted attribute and its assigned values","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /organizations/{organizationName}/attributes/{attributeName}","href":"/admin-api-reference/attributes/get-a-trusted-attribute-and-its-assigned-values"},{"title":"Set a user-scoped attribute value","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml put /organizations/{organizationName}/users/{userName}/attributes/{attributeName}","href":"/admin-api-reference/attributes/set-a-user-scoped-attribute-value"},{"title":"Delete a user-scoped attribute value","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/users/{userName}/attributes/{attributeName}","href":"/admin-api-reference/attributes/delete-a-user-scoped-attribute-value"},{"title":"Set a group-scoped attribute value","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml put /organizations/{organizationName}/groups/{groupName}/attributes/{attributeName}","href":"/admin-api-reference/attributes/set-a-group-scoped-attribute-value"},{"title":"Delete a group-scoped attribute value","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /organizations/{organizationName}/groups/{groupName}/attributes/{attributeName}","href":"/admin-api-reference/attributes/delete-a-group-scoped-attribute-value"}]},{"group":"users","pages":[{"title":"Create user account","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /users","href":"/admin-api-reference/users/create-user-account"},{"title":"Get user details","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /users/{userName}","href":"/admin-api-reference/users/get-user-details"},{"title":"Delete user account","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /users/{userName}","href":"/admin-api-reference/users/delete-user-account"},{"title":"Update user account","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml patch /users/{userName}","href":"/admin-api-reference/users/update-user-account"}]},{"group":"demo","pages":[{"title":"Create demo environment","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /demo/create_environment","href":"/admin-api-reference/demo/create-demo-environment"},{"title":"Create self-service organization","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /demo/create_self_service_organization","href":"/admin-api-reference/demo/create-self-service-organization"}]},{"group":"invites","pages":[{"title":"List invite tokens","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /invites","href":"/admin-api-reference/invites/list-invite-tokens"},{"title":"Create an organization-creation invite token","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /invites","href":"/admin-api-reference/invites/create-an-organization-creation-invite-token"},{"title":"Get a single invite by its token","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml get /invites/{token}","href":"/admin-api-reference/invites/get-a-single-invite-by-its-token"},{"title":"Revoke an unconsumed invite","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml delete /invites/{token}","href":"/admin-api-reference/invites/revoke-an-unconsumed-invite"}]},{"group":"permissions","pages":[{"title":"Create system permission","deprecated":null,"version":null,"openapi":"/controlplane-public-api-doc.yaml post /permissions","href":"/admin-api-reference/permissions/create-system-permission"}]}]},{"tab":"Data API","pages":[{"title":"Data API","href":"/data-api-reference"}]},{"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 run (rebuild a version, or a single scoped unit) - 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"]}