Update an existing data spec
update_data_specModify an existing data spec's configuration by updating only the fields you specify. Save changes and re-run analysis by default, or receive upload URLs when replacing files, then finalize the update.
Instructions
Change an existing data spec's configuration. Runs synchronously when no replacement files are given (saves changes, re-runs analysis by default). If a replacement file name is given, returns upload URL(s) instead; upload, then call finish_data_spec_update. Only pass fields you want to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | Whether new data should merge/upsert into existing rows rather than append. | |
| specName | Yes | Name of the existing data spec to update | |
| computeSize | No | Compute size for analysis/processing. | |
| description | No | New description for the spec. | |
| runAnalysis | No | Whether to run analysis and wait for it after saving changes (default true). | |
| workspaceId | No | Workspace to act on. Defaults to your only workspace if you have exactly one. | |
| sourceTables | No | sourceType tables specs only. Replacement list of source tables. | |
| targetOption | No | Change where transformed data lands. | |
| targetTables | No | New target table list (sourceType file), or the single target table name (sourceType tables). | |
| formatFileName | No | sourceType file specs only. Replacement format spec file. | |
| loadSampleData | No | Whether re-analysis should also trigger the data-load job (default true). | |
| sampleFileName | No | sourceType file specs only. Replacement sample data file. | |
| additionalPrompt | No | Replacement AI guidance, reused on future re-analysis. | |
| targetSchemaFileName | No | File name of a replacement target schema file. |