Run a declared import over an uploaded file. dry_run validates every row and writes nothing.
Re-sent under the same Idempotency-Key: The key names each row’s write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.
POST
/
v1
/
object-model
/
imports
/
{import_id}
/
run
Run a declared import over an uploaded file. dry_run validates every row and writes nothing.
An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.
Scopes
object_model:records:write
object_model:facts:write
Headers
Idempotency-Key
string
required
Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 idempotency_key_reused). A dry run (dry_run: true) needs none, and is not recorded under one it carries.
Required string length: 1 - 255
Pattern: ^[\x20-\x7E]+$
Path Parameters
import_id
string
required
Body
application/json
candidate
string
A tracker import: a whole import <import_id> for … { tracker { … } } declaration to use in place of the declared one, such as a layout not saved yet. Checked against the live model and never stored.
choices
object[]
A tracker import's save: your answers to the flags its dry run raised on rows (tracker.rows[].flags). A flag you do not answer takes its default_choice.
Show child attributes
decide_existing
boolean
A tracker import: raise each value a matched record already holds that the file would change as an existing flag, and keep the record's value unless your answer in choices takes the file's.
dry_run
boolean
Check every row and write nothing. The answer counts the rows and lists each one's issues (issue_rows).
fallback_date_utc
string
A tracker import: the date (YYYY-MM-DD, UTC) a record it creates takes where the file gives none. Choose it once, and send the same date on the dry run, the save and any retry.
file
object
The file to import, sent in the body: raw_bytes (base64) and metadata.name. Send CSV, XLS or XLSX: an XLS or XLSX workbook is recognized by its content, and a name ending in .csv or any other content is read as CSV. OpenDocument (.ods) and binary Excel (.xlsb) workbooks are refused. The whole body is at most 8 MiB, base64 included, which leaves about 6 MiB for the file. A stored file's id is not read.
Show child attributes
idempotency_key
string
Taken from the Idempotency-Key header: leave it out.
import_id
string
The import, as an import declaration in the model's text (GET /model) names it. Named by the path: leave it out, or send the same id.
inspect
boolean
A tracker import: describe what the file holds (inspection) instead of previewing it, to map its columns onto fields. Nothing is matched or written.
sheet
string
A tracker import: the worksheet to read, by name, instead of the one chosen for you.
subject_id
string
The record every row acts on, of the import's subject type. Leave it out for a tracker import.
template
boolean
Set by GET /imports/{import_id}/template: the blank template, answered as report. That file is kept for the VectorShift app to download, and this API gives no way to download it yet. Leave it out on a run.
tracker_overwrite
boolean
A tracker import whose layout fills only blank fields: write the file's values over what matched records hold.
world_id
string
The scenario the rows' facts land in. Leave it out to record them outside any scenario.
Response
Answered.
error
string
The file could not be read: the wrong format, a missing required heading, or too many rows.
inspection
object
With inspect: what the file holds, to map its columns.
Show child attributes
invalidated_definitions
string[]
Figures whose values the import changes, by id.
issue_rows
object[]
The first rows with issues, in file order.
Show child attributes
report
object
The blank template (with template), or a copy of the file marking each row's issues, for the app to download. This API can't download it yet: read issue_rows instead.
Show child attributes
rows_with_issues
integer
How many rows have an issue or did not save. issue_rows lists the first of them.
saved
integer
Rows written (or replayed on a retry). An import with columns saves nothing unless every row passes; a tracker import saves each row on its own.
total_rows
integer
Data rows read from the file.
tracker
object
A tracker import's answer, in place of the issue rows: each row's match and changes, and the flags to answer in choices.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VectorShift","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e","dark":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e"},"favicon":"https://mintcdn.com/vectorshift/PSG1OGMwi51Mi0EL/android-chrome-512x512.png?fit=max\u0026auto=format\u0026n=PSG1OGMwi51Mi0EL\u0026q=85\u0026s=1a5016324923f89a576a8696462ef07e","appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"/support","label":"Support"},{"href":"https://app.vectorshift.ai/account/api-keys","label":"API Keys"}],"primary":{"type":"button","label":"Platform","href":"https://app.vectorshift.ai"}},"footer":{"socials":{"x":"https://x.com/vectorshiftai","linkedin":"https://linkedin.com/company/vectorshift"}},"search":{"prompt":"Search the SDK, API, and platform docs…"},"seo":{"metatags":{"og:image":"/logo/vectorshift-logo.png"},"indexing":"navigable"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"languages":{}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","aistudio","perplexity"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vectorshift","hasAudioNarration":false,"actualSubdomain":"vectorshift","customDomains":["docs.vectorshift.ai"],"gitSource":{"type":"github","owner":"vectorshift","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0847caae6faf96d9a2a245","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"SDK","count":136},{"language":"default","tag":"Documentation","count":124},{"language":"default","tag":"Examples","count":84},{"language":"default","tag":"Nodes","count":65},{"language":"default","tag":"Platform","count":61},{"language":"default","tag":"Ontology","count":57},{"language":"default","tag":"Pipeline","count":38},{"language":"default","tag":"API Reference","count":31},{"language":"default","tag":"Agent","count":27},{"language":"default","tag":"Knowledge Base","count":24}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){.hidden.xl\\:flex{display:flex!important}div.z-10.hidden:has(>div.xl\\:flex){display:block!important}}"}]}
{"page":{"pagePath":"ontology/imports/run","slug":"/ontology/imports/run","pageMetadata":{"title":"Run an import","openapi":"ontology/openapi.json POST /v1/object-model/imports/{import_id}/run","description":"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.\n\n**Re-sent under the same Idempotency-Key:** The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.","href":"/ontology/imports/run"},"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 p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Re-sent under the same Idempotency-Key:\"\n }), \" The key names each row’s write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\"]\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":{}},"config":{},"pageMetadata":{"title":"Run an import","openapi":"ontology/openapi.json POST /v1/object-model/imports/{import_id}/run","description":"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.\n\n**Re-sent under the same Idempotency-Key:** The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.","href":"/ontology/imports/run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.\n\n**Re-sent under the same Idempotency-Key:** The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.","operationId":"post_imports_by_import_id_run","parameters":["f7bd9a3d-0804-4a83-93de-5f61226ba35c","1cbb11a5-e66c-4929-962d-8987845b315d"],"requestBody":"6569a0a7-0f97-431d-a962-a830d08f150c","responses":{"200":"f2382f91-e8f8-41bd-9982-6a8dd9f262ec","400":"b51a137e-af0b-4437-8387-af040dcfb4a1","401":"585c3288-980a-4f86-95f2-4577fe52464b","403":"d571bb38-947a-45a5-a412-78acb7215556","404":"2af50118-ec6c-4dac-8976-9d1bc5b54cd3","409":"d6ece2b3-b174-46f5-ae05-53cd0c781c19","413":"05e8fa87-c35b-44d5-b0a9-59c6b328c546","422":"44e61d40-0f42-4e79-98c7-ebe4c28de18c","429":"efed59bc-8478-4b09-808c-aca18f90a9f9","503":"bcadf416-b531-488c-bba7-c24c9e3eb9b6","504":"a5e9da9d-97d6-4f14-b98e-0fe8a6dea42f"},"security":["54bcc1c1-f4d7-4d07-a0c3-2cc4637d932f"],"summary":"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.","tags":["imports"],"x-cost":"bulk","x-idempotency":{"key":"required","resent":"The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.","retention_hours":24},"x-scope":["object_model:records:write","object_model:facts:write"],"x-stability":"beta","method":"post","type":"path","servers":["21882d02-359c-4852-99ad-7e493557f05d"],"path":"/v1/object-model/imports/{import_id}/run","baseUrlOptions":["https://api.vectorshift.ai"],"title":"Run a declared import over an uploaded file. dry_run validates every row and writes nothing.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f7bd9a3d-0804-4a83-93de-5f61226ba35c":{"in":"path","name":"import_id","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"1cbb11a5-e66c-4929-962d-8987845b315d":{"description":"Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 `idempotency_key_reused`). A dry run (`dry_run: true`) needs none, and is not recorded under one it carries.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"pattern":"^[\\x20-\\x7E]+$","type":"string","isRequired":true,"description":"Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 `idempotency_key_reused`). A dry run (`dry_run: true`) needs none, and is not recorded under one it carries.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"candidate":{"description":"A tracker import: a whole `import \u003cimport_id> for … { tracker { … } }` declaration to use in place of the declared one, such as a layout not saved yet. Checked against the live model and never stored.","type":"string","uniqueKey":"candidate","typeLabel":"string"},"choices":{"description":"A tracker import's save: your answers to the flags its dry run raised on rows (`tracker.rows[].flags`). A flag you do not answer takes its `default_choice`.","items":{"additionalProperties":false,"properties":{"choice":{"description":"Your answer: the `value` of one of the flag's `options`, or `\"\"` to leave the value out.","type":"string","uniqueKey":"choices.items.[INDEX].choice","typeLabel":"string"},"field":{"description":"The flag's field, as the dry run reported it.","type":"string","uniqueKey":"choices.items.[INDEX].field","typeLabel":"string"},"kind":{"description":"The flag's kind, as the dry run reported it.","type":"string","uniqueKey":"choices.items.[INDEX].kind","typeLabel":"string"},"row":{"description":"The flagged row. `0` answers every flag of the same `kind`, `field` and `value`.","type":"integer","uniqueKey":"choices.items.[INDEX].row","typeLabel":"integer"},"value":{"description":"The flag's value, as the dry run reported it.","type":"string","uniqueKey":"choices.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"choices","typeLabel":"object[]"},"decide_existing":{"description":"A tracker import: raise each value a matched record already holds that the file would change as an `existing` flag, and keep the record's value unless your answer in `choices` takes the file's.","type":"boolean","uniqueKey":"decide_existing","typeLabel":"boolean"},"dry_run":{"description":"Check every row and write nothing. The answer counts the rows and lists each one's issues (`issue_rows`).","type":"boolean","uniqueKey":"dry_run","typeLabel":"boolean"},"fallback_date_utc":{"description":"A tracker import: the date (`YYYY-MM-DD`, UTC) a record it creates takes where the file gives none. Choose it once, and send the same date on the dry run, the save and any retry.","type":"string","uniqueKey":"fallback_date_utc","typeLabel":"string"},"file":{"type":"object","description":"The file to import, sent in the body: `raw_bytes` (base64) and `metadata.name`. Send CSV, XLS or XLSX: an XLS or XLSX workbook is recognized by its content, and a name ending in `.csv` or any other content is read as CSV. OpenDocument (`.ods`) and binary Excel (`.xlsb`) workbooks are refused. The whole body is at most 8 MiB, base64 included, which leaves about 6 MiB for the file. A stored file's `id` is not read.","properties":{"id":{"description":"A stored file's id. An import does not read it: send `raw_bytes`.","type":"string","uniqueKey":"file.id","typeLabel":"string"},"metadata":{"type":"object","description":"The file's `name` and `mime_type`. An import reads the name: one ending in `.csv` is read as CSV.","properties":{"content_hash":{"type":"string","uniqueKey":"file.metadata.content_hash","typeLabel":"string"},"created_timestamp":{"format":"date-time","type":"string","uniqueKey":"file.metadata.created_timestamp","typeLabel":"string\u003cdate-time>"},"mime_type":{"type":"string","uniqueKey":"file.metadata.mime_type","typeLabel":"string"},"name":{"type":"string","uniqueKey":"file.metadata.name","typeLabel":"string"},"path":{"type":"string","uniqueKey":"file.metadata.path","typeLabel":"string"},"save_file_description":{"type":"string","uniqueKey":"file.metadata.save_file_description","typeLabel":"string"},"save_file_send":{"type":"boolean","uniqueKey":"file.metadata.save_file_send","typeLabel":"boolean"},"save_file_target_id":{"type":"string","uniqueKey":"file.metadata.save_file_target_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"file.metadata","typeLabel":"object"},"raw_bytes":{"contentEncoding":"base64","description":"The file's bytes, base64-encoded.","type":"string","uniqueKey":"file.raw_bytes","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"file","typeLabel":"object"},"idempotency_key":{"description":"Taken from the `Idempotency-Key` header: leave it out.","type":"string","uniqueKey":"idempotency_key","typeLabel":"string"},"import_id":{"description":"The import, as an `import` declaration in the model's text (`GET /model`) names it. Named by the path: leave it out, or send the same id.","type":"string","uniqueKey":"import_id","typeLabel":"string"},"inspect":{"description":"A tracker import: describe what the file holds (`inspection`) instead of previewing it, to map its columns onto fields. Nothing is matched or written.","type":"boolean","uniqueKey":"inspect","typeLabel":"boolean"},"sheet":{"description":"A tracker import: the worksheet to read, by name, instead of the one chosen for you.","type":"string","uniqueKey":"sheet","typeLabel":"string"},"subject_id":{"description":"The record every row acts on, of the import's subject type. Leave it out for a tracker import.","type":"string","uniqueKey":"subject_id","typeLabel":"string"},"template":{"description":"Set by `GET /imports/{import_id}/template`: the blank template, answered as `report`. That file is kept for the VectorShift app to download, and this API gives no way to download it yet. Leave it out on a run.","type":"boolean","uniqueKey":"template","typeLabel":"boolean"},"tracker_overwrite":{"description":"A tracker import whose layout fills only blank fields: write the file's values over what matched records hold.","type":"boolean","uniqueKey":"tracker_overwrite","typeLabel":"boolean"},"world_id":{"description":"The scenario the rows' facts land in. Leave it out to record them outside any scenario.","type":"string","uniqueKey":"world_id","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"candidate":"\u003cstring>","choices":[{"choice":"\u003cstring>","field":"\u003cstring>","kind":"\u003cstring>","row":123,"value":"\u003cstring>"}],"decide_existing":true,"dry_run":true,"fallback_date_utc":"\u003cstring>","file":{"id":"\u003cstring>","metadata":{"content_hash":"\u003cstring>","created_timestamp":"2023-11-07T05:31:56Z","mime_type":"\u003cstring>","name":"\u003cstring>","path":"\u003cstring>","save_file_description":"\u003cstring>","save_file_send":true,"save_file_target_id":"\u003cstring>"},"raw_bytes":"\u003cstring>"},"idempotency_key":"\u003cstring>","import_id":"\u003cstring>","inspect":true,"sheet":"\u003cstring>","subject_id":"\u003cstring>","template":true,"tracker_overwrite":true,"world_id":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"f2382f91-e8f8-41bd-9982-6a8dd9f262ec":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"description":"The file could not be read: the wrong format, a missing required heading, or too many rows.","type":"string","uniqueKey":"error","typeLabel":"string"},"inspection":{"type":"object","description":"With `inspect`: what the file holds, to map its columns.","properties":{"fields":{"items":{"additionalProperties":false,"properties":{"field":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].field","typeLabel":"string"},"kind":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].kind","typeLabel":"string"},"label":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].label","typeLabel":"string"},"links_to":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].links_to","typeLabel":"string"},"on_create":{"type":"boolean","uniqueKey":"inspection.fields.items.[INDEX].on_create","typeLabel":"boolean"},"options":{"items":{"additionalProperties":false,"properties":{"label":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].options.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","uniqueKey":"inspection.fields.items.[INDEX].options.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"inspection.fields.items.[INDEX].options.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"inspection.fields.items.[INDEX].options","typeLabel":"object[]"}},"type":"object","uniqueKey":"inspection.fields.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"inspection.fields","typeLabel":"object[]"},"sheets":{"items":{"additionalProperties":false,"properties":{"columns":{"items":{"additionalProperties":false,"properties":{"column":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].column","typeLabel":"integer"},"distinct":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].distinct","typeLabel":"integer"},"filled":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].filled","typeLabel":"integer"},"heading":{"type":"string","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].heading","typeLabel":"string"},"values":{"items":{"additionalProperties":false,"properties":{"count":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].values.items.[INDEX].count","typeLabel":"integer"},"text":{"type":"string","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].values.items.[INDEX].text","typeLabel":"string"}},"type":"object","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].values.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX].values","typeLabel":"object[]"}},"type":"object","uniqueKey":"inspection.sheets.items.[INDEX].columns.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"inspection.sheets.items.[INDEX].columns","typeLabel":"object[]"},"heading_row":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].heading_row","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"inspection.sheets.items.[INDEX].name","typeLabel":"string"},"rows":{"type":"integer","uniqueKey":"inspection.sheets.items.[INDEX].rows","typeLabel":"integer"}},"type":"object","uniqueKey":"inspection.sheets.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"inspection.sheets","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"inspection","typeLabel":"object"},"invalidated_definitions":{"description":"Figures whose values the import changes, by id.","items":{"type":"string","uniqueKey":"invalidated_definitions.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"invalidated_definitions","typeLabel":"string[]"},"issue_rows":{"description":"The first rows with issues, in file order.","items":{"additionalProperties":false,"properties":{"issues":{"description":"What is wrong with it.","items":{"additionalProperties":false,"properties":{"column":{"description":"The column heading it is about. Empty for an issue with the whole row.","type":"string","uniqueKey":"issue_rows.items.[INDEX].issues.items.[INDEX].column","typeLabel":"string"},"message":{"description":"The issue, in words for a person.","type":"string","uniqueKey":"issue_rows.items.[INDEX].issues.items.[INDEX].message","typeLabel":"string"}},"type":"object","uniqueKey":"issue_rows.items.[INDEX].issues.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"issue_rows.items.[INDEX].issues","typeLabel":"object[]"},"row":{"description":"The worksheet row, counting from 1 as a spreadsheet does.","type":"integer","uniqueKey":"issue_rows.items.[INDEX].row","typeLabel":"integer"}},"type":"object","uniqueKey":"issue_rows.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"issue_rows","typeLabel":"object[]"},"report":{"type":"object","description":"The blank template (with `template`), or a copy of the file marking each row's issues, for the app to download. This API can't download it yet: read `issue_rows` instead.","properties":{"id":{"description":"A stored file's id. An import does not read it: send `raw_bytes`.","type":"string","uniqueKey":"report.id","typeLabel":"string"},"metadata":{"type":"object","description":"The file's `name` and `mime_type`. An import reads the name: one ending in `.csv` is read as CSV.","properties":{"content_hash":{"type":"string","uniqueKey":"report.metadata.content_hash","typeLabel":"string"},"created_timestamp":{"format":"date-time","type":"string","uniqueKey":"report.metadata.created_timestamp","typeLabel":"string\u003cdate-time>"},"mime_type":{"type":"string","uniqueKey":"report.metadata.mime_type","typeLabel":"string"},"name":{"type":"string","uniqueKey":"report.metadata.name","typeLabel":"string"},"path":{"type":"string","uniqueKey":"report.metadata.path","typeLabel":"string"},"save_file_description":{"type":"string","uniqueKey":"report.metadata.save_file_description","typeLabel":"string"},"save_file_send":{"type":"boolean","uniqueKey":"report.metadata.save_file_send","typeLabel":"boolean"},"save_file_target_id":{"type":"string","uniqueKey":"report.metadata.save_file_target_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"report.metadata","typeLabel":"object"},"raw_bytes":{"contentEncoding":"base64","description":"The file's bytes, base64-encoded.","type":"string","uniqueKey":"report.raw_bytes","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"report","typeLabel":"object"},"rows_with_issues":{"description":"How many rows have an issue or did not save. `issue_rows` lists the first of them.","type":"integer","uniqueKey":"rows_with_issues","typeLabel":"integer"},"saved":{"description":"Rows written (or replayed on a retry). An import with columns saves nothing unless every row passes; a tracker import saves each row on its own.","type":"integer","uniqueKey":"saved","typeLabel":"integer"},"total_rows":{"description":"Data rows read from the file.","type":"integer","uniqueKey":"total_rows","typeLabel":"integer"},"tracker":{"type":"object","description":"A tracker import's answer, in place of the issue rows: each row's match and changes, and the flags to answer in `choices`.","properties":{"created":{"type":"integer","uniqueKey":"tracker.created","typeLabel":"integer"},"heading_row":{"type":"integer","uniqueKey":"tracker.heading_row","typeLabel":"integer"},"missing_headings":{"items":{"type":"string","uniqueKey":"tracker.missing_headings.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tracker.missing_headings","typeLabel":"string[]"},"overwrite_offered":{"type":"boolean","uniqueKey":"tracker.overwrite_offered","typeLabel":"boolean"},"overwrote":{"type":"boolean","uniqueKey":"tracker.overwrote","typeLabel":"boolean"},"rows":{"items":{"additionalProperties":false,"properties":{"changes":{"items":{"additionalProperties":false,"properties":{"after":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].changes.items.[INDEX].after","typeLabel":"string"},"before":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].changes.items.[INDEX].before","typeLabel":"string"},"field":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].changes.items.[INDEX].field","typeLabel":"string"},"label":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].changes.items.[INDEX].label","typeLabel":"string"}},"type":"object","uniqueKey":"tracker.rows.items.[INDEX].changes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tracker.rows.items.[INDEX].changes","typeLabel":"object[]"},"flags":{"items":{"additionalProperties":false,"properties":{"chosen":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].chosen","typeLabel":"string"},"default_choice":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].default_choice","typeLabel":"string"},"field":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].field","typeLabel":"string"},"kind":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].kind","typeLabel":"string"},"label":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].label","typeLabel":"string"},"message":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].message","typeLabel":"string"},"options":{"items":{"additionalProperties":false,"properties":{"label":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].options.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].options.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].options.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].options","typeLabel":"object[]"},"value":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"tracker.rows.items.[INDEX].flags.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tracker.rows.items.[INDEX].flags","typeLabel":"object[]"},"key_label":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].key_label","typeLabel":"string"},"key_new":{"type":"boolean","uniqueKey":"tracker.rows.items.[INDEX].key_new","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].message","typeLabel":"string"},"name":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].name","typeLabel":"string"},"notes":{"items":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].notes.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tracker.rows.items.[INDEX].notes","typeLabel":"string[]"},"outcome":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].outcome","typeLabel":"string"},"record_id":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].record_id","typeLabel":"string"},"record_label":{"type":"string","uniqueKey":"tracker.rows.items.[INDEX].record_label","typeLabel":"string"},"row":{"type":"integer","uniqueKey":"tracker.rows.items.[INDEX].row","typeLabel":"integer"}},"type":"object","uniqueKey":"tracker.rows.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tracker.rows","typeLabel":"object[]"},"sheet":{"type":"string","uniqueKey":"tracker.sheet","typeLabel":"string"},"sheets":{"items":{"additionalProperties":false,"properties":{"heading_row":{"type":"integer","uniqueKey":"tracker.sheets.items.[INDEX].heading_row","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"tracker.sheets.items.[INDEX].name","typeLabel":"string"},"readable":{"type":"boolean","uniqueKey":"tracker.sheets.items.[INDEX].readable","typeLabel":"boolean"},"rows":{"type":"integer","uniqueKey":"tracker.sheets.items.[INDEX].rows","typeLabel":"integer"}},"type":"object","uniqueKey":"tracker.sheets.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tracker.sheets","typeLabel":"object[]"},"unread_headings":{"items":{"type":"string","uniqueKey":"tracker.unread_headings.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tracker.unread_headings","typeLabel":"string[]"},"updated":{"type":"integer","uniqueKey":"tracker.updated","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"tracker","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","inspection":{"fields":[{"field":"\u003cstring>","kind":"\u003cstring>","label":"\u003cstring>","links_to":"\u003cstring>","on_create":true,"options":[{"label":"\u003cstring>","value":"\u003cstring>"}]}],"sheets":[{"columns":[{"column":123,"distinct":123,"filled":123,"heading":"\u003cstring>","values":[{"count":123,"text":"\u003cstring>"}]}],"heading_row":123,"name":"\u003cstring>","rows":123}]},"invalidated_definitions":["\u003cstring>"],"issue_rows":[{"issues":[{"column":"\u003cstring>","message":"\u003cstring>"}],"row":123}],"report":{"id":"\u003cstring>","metadata":{"content_hash":"\u003cstring>","created_timestamp":"2023-11-07T05:31:56Z","mime_type":"\u003cstring>","name":"\u003cstring>","path":"\u003cstring>","save_file_description":"\u003cstring>","save_file_send":true,"save_file_target_id":"\u003cstring>"},"raw_bytes":"\u003cstring>"},"rows_with_issues":123,"saved":123,"total_rows":123,"tracker":{"created":123,"heading_row":123,"missing_headings":["\u003cstring>"],"overwrite_offered":true,"overwrote":true,"rows":[{"changes":[{"after":"\u003cstring>","before":"\u003cstring>","field":"\u003cstring>","label":"\u003cstring>"}],"flags":[{"chosen":"\u003cstring>","default_choice":"\u003cstring>","field":"\u003cstring>","kind":"\u003cstring>","label":"\u003cstring>","message":"\u003cstring>","options":[{"label":"\u003cstring>","value":"\u003cstring>"}],"value":"\u003cstring>"}],"key_label":"\u003cstring>","key_new":true,"message":"\u003cstring>","name":"\u003cstring>","notes":["\u003cstring>"],"outcome":"\u003cstring>","record_id":"\u003cstring>","record_label":"\u003cstring>","row":123}],"sheet":"\u003cstring>","sheets":[{"heading_row":123,"name":"\u003cstring>","readable":true,"rows":123}],"unread_headings":["\u003cstring>"],"updated":123}}}},"exampleType":"generated"}},"description":"Answered.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"Object-Model-Version":{"description":"The model version the request was served under.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"b51a137e-af0b-4437-8387-af040dcfb4a1":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Malformed JSON, an unknown field, an unknown query parameter, one naming a field the route fixes, or a malformed Idempotency-Key (code `invalid_request`); a write with no Idempotency-Key (code `idempotency_key_required`).","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"585c3288-980a-4f86-95f2-4577fe52464b":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Missing, invalid or expired API key.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"d571bb38-947a-45a5-a412-78acb7215556":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The key lacks the scope (`scope_required`), the person lacks the permission (`forbidden`), or a feature the request needs is not enabled for the organization (`not_enabled`).","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"2af50118-ec6c-4dac-8976-9d1bc5b54cd3":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"No such record, or one this caller cannot see — the same answer on purpose.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"d6ece2b3-b174-46f5-ae05-53cd0c781c19":{"content":{"application/json":{"examples":{"idempotency_key_reused":{"title":"idempotency_key_reused","summary":"The key was used for a different request","value":{"code":"idempotency_key_reused","error":"this Idempotency-Key was used for a different request; send a new key for a new request","status":"failed"}},"request_in_progress":{"title":"request_in_progress","summary":"A concurrent duplicate: the first request with this key is still running","value":{"code":"request_in_progress","error":"a request with this Idempotency-Key is still running; retry after it finishes to get its answer","status":"failed"}}},"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"`idempotency_key_reused`: this Idempotency-Key was used for a different request. `request_in_progress`: a request with this key is still running; retry after Retry-After to get its answer.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"Retry-After":{"description":"With `request_in_progress`: seconds to wait before retrying.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"examples"},"05e8fa87-c35b-44d5-b0a9-59c6b328c546":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The body is over 8 MiB.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"44e61d40-0f42-4e79-98c7-ebe4c28de18c":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Understood and declined: validation, a guard, a decided field, a deletion policy, a wall. `result` carries what the operation did before it stopped, when it did anything.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"efed59bc-8478-4b09-808c-aca18f90a9f9":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Rate limited. Retry-After says when to try again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"bcadf416-b531-488c-bba7-c24c9e3eb9b6":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The request could not be recorded under its Idempotency-Key, so it was not run (code `idempotency_unavailable`). Retry it with the same key.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"a5e9da9d-97d6-4f14-b98e-0fe8a6dea42f":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"No answer in time. A write may have landed: retry with the same Idempotency-Key.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"}},"security":{"54bcc1c1-f4d7-4d07-a0c3-2cc4637d932f":{"apiKey":{"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","scheme":"bearer","type":"http","scopes":["object_model:records:write","object_model:facts:write"],"schemeName":"apiKey"}}},"servers":{"21882d02-359c-4852-99ad-7e493557f05d":{"url":"https://api.vectorshift.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","scheme":"bearer","type":"http","scopes":["object_model:records:write","object_model:facts:write"],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"ontology/openapi.json"},"subdomain":"vectorshift","siteName":"VectorShift","title":"Run an import - VectorShift","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T14:53:12.596Z","originalFileLocation":"ontology/imports/run.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=\"Run a declared import over an uploaded file. dry_run validates every row and writes nothing. Re-sent under the same Idempotency-Key: The key names each row\u0026#x27;s write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run an import - VectorShift\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run a declared import over an uploaded file. dry_run validates every row and writes nothing. Re-sent under the same Idempotency-Key: The key names each row\u0026#x27;s write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VectorShift\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vectorshift.ai/ontology/imports/run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vectorshift.mintlify.site/logo/vectorshift-logo.png\">\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=\"Run an import - VectorShift\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run a declared import over an uploaded file. dry_run validates every row and writes nothing. Re-sent under the same Idempotency-Key: The key names each row\u0026#x27;s write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vectorshift.mintlify.site/logo/vectorshift-logo.png\">\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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vectorshift.ai/ontology/imports/run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ontology/imports/run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vectorshift.ai/#organization\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vectorshift.ai#website\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vectorshift.ai/ontology/imports/run#webpage\",\"url\":\"https://docs.vectorshift.ai/ontology/imports/run\",\"name\":\"Run an import\",\"description\":\"Run a declared import over an uploaded file. dry_run validates every row and writes nothing. Re-sent under the same Idempotency-Key: The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\",\"dateModified\":\"2026-11-26T14:53:12.596Z\",\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vectorshift.ai/ontology/imports/run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vectorshift.ai/ontology/imports/run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Imports\",\"item\":\"https://docs.vectorshift.ai/ontology/imports/template\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run an import\",\"item\":\"https://docs.vectorshift.ai/ontology/imports/run\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.vectorshift.ai/ontology/imports/run#apireference\",\"headline\":\"Run an import\",\"name\":\"Run an import\",\"description\":\"Run a declared import over an uploaded file. dry_run validates every row and writes nothing. Re-sent under the same Idempotency-Key: The key names each row's write: re-sent, rows that saved answer again and are not written twice. Unlike an action run, an import that stopped part way is continued by a re-send: the rows it did not reach are saved. Uploading the rows that did not save is a new import, under a new key.\",\"url\":\"https://docs.vectorshift.ai/ontology/imports/run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vectorshift.ai/ontology/imports/run#webpage\"},\"image\":\"https://docs.vectorshift.ai/logo/vectorshift-logo.png\",\"dateModified\":\"2026-11-26T14:53:12.596Z\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VectorShift\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VectorShift\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ontology/imports/run.md","siteName":"VectorShift","nav":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Ontology","groups":[{"group":"Get Started","pages":[{"title":"Ontology API","sidebarTitle":"Overview","href":"/ontology/overview"},{"title":"Authentication and scopes","href":"/ontology/authentication"}]},{"group":"Guides","pages":[{"title":"Working with your schema","sidebarTitle":"Working with your schema","href":"/ontology/working-with-your-schema"},{"title":"Field types","href":"/ontology/field-types"},{"title":"Idempotency","href":"/ontology/idempotency"},{"title":"Record filters","href":"/ontology/record-filters"},{"title":"Syncing with the change feed","sidebarTitle":"Syncing changes","href":"/ontology/change-feed"}]},{"group":"Schema","pages":[{"title":"Get the ontology summary","openapi":"ontology/openapi.json GET /v1/object-model","href":"/ontology/schema/summary"},{"title":"Get the schema","openapi":"ontology/openapi.json GET /v1/object-model/schema","href":"/ontology/schema/get"}]},{"group":"Records","pages":[{"title":"List records","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}","href":"/ontology/records/list"},{"title":"Query records","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}/query","href":"/ontology/records/query"},{"title":"Search records","openapi":"ontology/openapi.json POST /v1/object-model/record-search","href":"/ontology/records/search"},{"title":"Get a record","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}","href":"/ontology/records/get"},{"title":"Create a record","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}","href":"/ontology/records/create"},{"title":"Update a record","openapi":"ontology/openapi.json PATCH /v1/object-model/records/{type_id}/{record_id}","href":"/ontology/records/update"},{"title":"Delete a record","openapi":"ontology/openapi.json DELETE /v1/object-model/records/{type_id}/{record_id}","href":"/ontology/records/delete"},{"title":"List related records","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/related/{relation_id}","href":"/ontology/records/related"},{"title":"Get record activity","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/activity","href":"/ontology/records/activity"},{"title":"Query record activity","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}/{record_id}/activity/query","href":"/ontology/records/activity-query"},{"title":"Get record evidence","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/evidence","href":"/ontology/records/evidence"}]},{"group":"Record Write Jobs","pages":[{"title":"Start a write job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs","href":"/ontology/record-write-jobs/start"},{"title":"Upload a part","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/parts","href":"/ontology/record-write-jobs/upload-part"},{"title":"Seal a job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/seal","href":"/ontology/record-write-jobs/seal"},{"title":"Get a job","openapi":"ontology/openapi.json GET /v1/object-model/record-write-jobs/{job_id}","href":"/ontology/record-write-jobs/get"},{"title":"List item results","openapi":"ontology/openapi.json GET /v1/object-model/record-write-jobs/{job_id}/results","href":"/ontology/record-write-jobs/results"},{"title":"Cancel a job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/cancel","href":"/ontology/record-write-jobs/cancel"}]},{"group":"Actions","pages":[{"title":"List actions","openapi":"ontology/openapi.json GET /v1/object-model/actions","href":"/ontology/actions/list"},{"title":"Run an action","openapi":"ontology/openapi.json POST /v1/object-model/actions/{action_id}/run","href":"/ontology/actions/run"},{"title":"Run actions in a batch","openapi":"ontology/openapi.json POST /v1/object-model/actions/batch","href":"/ontology/actions/batch"},{"title":"Get a decision","openapi":"ontology/openapi.json GET /v1/object-model/decisions/{decision_id}","href":"/ontology/actions/decision"}]},{"group":"Facts and Figures","pages":[{"title":"List facts","openapi":"ontology/openapi.json GET /v1/object-model/facts","href":"/ontology/facts/list"},{"title":"Query facts","openapi":"ontology/openapi.json POST /v1/object-model/facts/query","href":"/ontology/facts/query"},{"title":"Record facts","openapi":"ontology/openapi.json POST /v1/object-model/facts","href":"/ontology/facts/record"},{"title":"Withdraw an override","openapi":"ontology/openapi.json POST /v1/object-model/facts/withdraw","href":"/ontology/facts/withdraw"},{"title":"Query figures","openapi":"ontology/openapi.json POST /v1/object-model/figures/query","href":"/ontology/facts/figures-query"},{"title":"Explain a figure","openapi":"ontology/openapi.json POST /v1/object-model/figures/explain","href":"/ontology/facts/figures-explain"}]},{"group":"Scenarios","pages":[{"title":"List scenarios","openapi":"ontology/openapi.json GET /v1/object-model/worlds","href":"/ontology/scenarios/list"},{"title":"Create or rename a scenario","openapi":"ontology/openapi.json PUT /v1/object-model/worlds/{world_id}","href":"/ontology/scenarios/put"},{"title":"Drop a scenario","openapi":"ontology/openapi.json DELETE /v1/object-model/worlds/{world_id}","href":"/ontology/scenarios/delete"}]},{"group":"Imports","pages":[{"title":"Get an import template","openapi":"ontology/openapi.json GET /v1/object-model/imports/{import_id}/template","description":"The blank template for a declared import.","href":"/ontology/imports/template"},{"title":"Run an import","openapi":"ontology/openapi.json POST /v1/object-model/imports/{import_id}/run","href":"/ontology/imports/run"}]},{"group":"Change Feed","pages":[{"title":"Get the head cursor","openapi":"ontology/openapi.json GET /v1/object-model/changes/cursor","description":"The cursor at the head of the feed, with no events. To start a mirror: take this cursor, then list what you mirror with an unsorted listing (GET /records/{type_id}, or a query without sorts), which pages by record id so no record that exists throughout is missed, then read /changes from it; an event for something already listed is harmless when applied by record id and revision. A sorted listing pages by offset and can skip a record when another is deleted.","href":"/ontology/changes/cursor"},{"title":"List changes","openapi":"ontology/openapi.json GET /v1/object-model/changes","href":"/ontology/changes/list"},{"title":"Query changes","openapi":"ontology/openapi.json POST /v1/object-model/changes/query","href":"/ontology/changes/query"}]},{"group":"Definition","pages":[{"title":"Create the ontology","openapi":"ontology/openapi.json POST /v1/object-model","href":"/ontology/definition/create"},{"title":"Get the definition","openapi":"ontology/openapi.json GET /v1/object-model/model","href":"/ontology/definition/get"},{"title":"List versions","openapi":"ontology/openapi.json GET /v1/object-model/model/versions","href":"/ontology/definition/versions"},{"title":"Compare versions","openapi":"ontology/openapi.json GET /v1/object-model/model/diff","href":"/ontology/definition/diff"},{"title":"Configure the ontology","openapi":"ontology/openapi.json POST /v1/object-model/model/configure","href":"/ontology/definition/configure"},{"title":"Upgrade the template","openapi":"ontology/openapi.json POST /v1/object-model/model/upgrade","href":"/ontology/definition/upgrade"},{"title":"Revert to an earlier version","openapi":"ontology/openapi.json POST /v1/object-model/model/revert","href":"/ontology/definition/revert"},{"title":"List drafts","openapi":"ontology/openapi.json GET /v1/object-model/model/drafts","href":"/ontology/definition/drafts-list"},{"title":"Open a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts","href":"/ontology/definition/drafts-open"},{"title":"Get a draft","openapi":"ontology/openapi.json GET /v1/object-model/model/drafts/{draft_id}","href":"/ontology/definition/drafts-get"},{"title":"Edit a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts/{draft_id}/edit","href":"/ontology/definition/drafts-edit"},{"title":"Publish a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts/{draft_id}/publish","href":"/ontology/definition/drafts-publish"},{"title":"Discard a draft","openapi":"ontology/openapi.json DELETE /v1/object-model/model/drafts/{draft_id}","href":"/ontology/definition/drafts-discard"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk"}]}]},"basePath":"","title":"Run an import - VectorShift","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}