Update enrichment
/enrichmentLegacy. Use PATCH /enrichments/{id} for new work.
Partially update an existing enrichment's output columns in place. The same enrichment_uuid is preserved.
The request body is a map keyed by column header (column display name), wrapped in an output property
(recommended — required when calling through generated clients or MCP tools). The column map may also be sent
unwrapped at the top level of the body.
- Update an existing output column: include only the keys you want to change. When a key is present, its value fully replaces the previous value for that key (e.g. sending
contextsreplaces all contexts). Sending a differenttoolclears the previous tool's parameters, so include the new tool's required parameters. - Add a new output column: use a header name that does not exist yet and include the full column configuration (same required fields as /run_new_enrichment output columns —
promptandcontextsfor agent mode, ortoolplus its parameters for tool-only mode). - Delete an output column: send
{ "delete": true }for that column header. You cannot delete input columns or the last remaining output column. If other columns reference the deleted column (as a context, tool parameter, or run_when rule), the request is rejected — update or delete those dependent columns in the same request. - Rename a column: send
{ "rename": "New Name" }for that column header. Works for input and output columns, keeps all cell data and configuration, and can be combined with other config changes for output columns. References to the column (contexts, tool parameters, run_when rules) follow the rename automatically. Other columns changed in the same request must reference it by its NEW name. - Convert a column between input and output: send
{ "column_type": "input" }on an output column to freeze it as source data (it stops running; its data is kept), or{ "column_type": "output", ...full column configuration }on an input column to make it enrichable (its existing data may then be overwritten by runs).
Supported config keys per column match the full output specification from /run_new_enrichment:
prompt, contexts, tools, format, format_details, run_when, run_when_config, proxy_country_code, and
tool-only fields (tool plus its parameters). See the per-column schema for the full field list.
column_order always sits at the top level of the body (beside output, never inside it).
Notes for enrichments built in the app UI:
- Columns with an empty prompt or no configuration are allowed and are left as-is (they simply don't run). New columns and input-to-output conversions still require a full configuration.
- Tools enabled for your account beyond the public tool list (by their internal tool key, e.g.
tech_stack_probe) are fully supported: they validate, round-trip, and can be configured here. Columns running internal tools that are NOT enabled for your account can still be renamed, reordered, converted, or deleted — but their configuration cannot be edited through this endpoint.
This endpoint updates configuration only — it does not run the enrichment. Use /run_enrichment afterward.
Update one column's prompt and contexts:
{
"output": {
"CEO": {
"prompt": "Find the current CEO of this company using recent news and filings",
"contexts": ["Company Name", "Website"]
}
}
}Update another column's format and tools:
{
"output": {
"Industry": {
"format": "tag",
"format_details": {
"options": ["SaaS", "Fintech", "Healthcare", "Other"],
"allow_multiple": false
},
"tools": ["web_search", "scrape"]
}
}
}Update multiple columns in one request:
{
"output": {
"CEO": {
"prompt": "Find the current CEO of this company using recent news and filings",
"contexts": ["Company Name", "Website"]
},
"Industry": {
"prompt": "What industry is this company in?",
"contexts": ["Company Name"],
"format": "tag",
"format_details": {
"options": ["SaaS", "Fintech", "Healthcare", "Other"]
},
"tools": ["web_search", "scrape"]
}
}
}Rename a column (optionally updating it at the same time):
{
"output": {
"CEO": {
"rename": "Chief Executive",
"prompt": "Find the current CEO of this company"
}
}
}Freeze an output column as source data / make an input column enrichable:
{
"output": {
"CEO": { "column_type": "input" },
"Website": {
"column_type": "output",
"prompt": "Find the official website for this company",
"contexts": ["Company Name"],
"format": "url"
}
}
}Reorder columns (list every column, inputs first is not required):
{
"column_order": ["Company Name", "Website", "CEO", "Industry"]
}Add a new output column:
{
"output": {
"Annual Revenue": {
"prompt": "Find the latest annual revenue for this company",
"contexts": ["Company Name", "Website"]
}
}
}Delete an output column:
{
"output": {
"CEO": {
"delete": true
}
}
}The output wrapper is optional for direct HTTP calls — the same column maps are accepted unwrapped at the
top level of the body (beside column_order).
Query parameters
enrichment_uuidstring uuidrequiredUUID of the enrichment to update (project_uuid is also accepted)
Request bodyrequired
outputEnrichmentOutputSpecKeys are output column headers. Values are per-column configuration objects. Any output column name is allowed; see the per-column schema for all supported fields.
Attributes
promptstringAgent instructions for this column (agent mode)
contextsarray of stringColumn headers used as input context (agent mode)
toolsarray of stringAgent tools: web_search, scrape, pdf, image, etc.
formatstringformat_detailsFormatDetailsFormat-specific options. Valid keys depend on the column format (see run_new_enrichment examples).
Only include keys that apply to your chosen format.
Attributes
optionsarray of stringtag — allowed tag values (required for tag format)
allow_multiplebooleantag — allow selecting more than one tag
descriptionsmap of stringtag — optional map from tag value to description (keys must be in options)
decimal_placesintegernumber — decimal places
currency_codestringnumber — 3-letter currency code (mutually exclusive with percentage)
commasbooleannumber — display thousands separators
percentagebooleannumber — format as percentage (mutually exclusive with currency_code)
descriptionstringjson — natural-language schema description (use with or instead of schema)
schemaobjectjson — JSON Schema object for structured output. Strict-mode requirements
(additionalProperties: false, full required arrays) are applied automatically — no need
to include them. Mark optional fields nullable (e.g. "type": ["string", "null"]).
Not supported: $ref, oneOf, allOf, not, non-object/array roots, nesting beyond
10 levels. anyOf is supported.
Attributes
typestringpropertiesmap of objectJSON Schema properties map
iso_8601booleandate — output ISO 8601 (cannot combine with month/day/year/delimiter)
monthstringdate — month format token
daystringdate — day format token
yearstringdate — year format token
delimiterstringdate — single-character delimiter between date parts
true_valuestringboolean — display string for true
false_valuestringboolean — display string for false
run_whenstringWhen this column should run per row (agent and tool-only columns). always (default),
any_filled / all_filled (based on the column's contexts, or its column-mapped tool params
in tool-only mode), or dynamic (rule-based — requires run_when_config).
run_when_configobjectRule-based run condition, required when run_when is dynamic. The column runs for a row
only when its rules match (match_mode: all = every rule must match, any = at least one).
Attributes
match_modestringHow rules combine — all (default) or any
rulesarray of objectNon-empty list of conditions evaluated against the row's cell values
Attributes
columnstringrequiredInput or output column header whose cell value is tested for this row
conditionstringrequiredTest applied to the cell value. is_empty / is_not_empty need no value.
The text_* conditions compare against value (case-insensitive, except
text_is_exactly which is an exact case-sensitive match).
valuestringComparison text for the text_* conditions (ignored for is_empty / is_not_empty)
toolstringTool-only mode: scrape, web_search, pdf, image, code, LinkedIn tools, etc.
urlstringColumn header or static URL (tool-only)
querystringColumn header or static query (tool-only, web_search)
date_startstringOptional start date for filtering search results. Format: YYYY-MM-DD (tool-only, web_search)
date_endstringOptional end date for filtering search results. Format: YYYY-MM-DD. Defaults to today if date_start is provided. (tool-only, web_search)
codestringJavaScript source (tool-only, code tool)
argsmap of stringNamed arguments for the code tool (tool-only). Keys are names referenced in your JavaScript
(e.g. args.first). Values are column headers (dynamic per row) or static strings.
proxy_country_codestringwait_longerbooleanskip_cachebooleancolumn_orderarray of stringFull ordered list of every column header (inputs and outputs) to reorder columns
Responses
200Enrichment updated successfully
request_statusstringrequiredmessagestringrequiredenrichment_uuidstring uuidenrichment_namestringnamestringuuidstring uuidapp_urlstringstatusstringinputarray of stringNames of input (source data) columns
outputEnrichmentOutputSpecKeys are output column headers. Values are per-column configuration objects. Any output column name is allowed; see the per-column schema for all supported fields.
Attributes
promptstringAgent instructions for this column (agent mode)
contextsarray of stringColumn headers used as input context (agent mode)
toolsarray of stringAgent tools: web_search, scrape, pdf, image, etc.
formatstringformat_detailsFormatDetailsFormat-specific options. Valid keys depend on the column format (see run_new_enrichment examples).
Only include keys that apply to your chosen format.
Attributes
optionsarray of stringtag — allowed tag values (required for tag format)
allow_multiplebooleantag — allow selecting more than one tag
descriptionsmap of stringtag — optional map from tag value to description (keys must be in options)
decimal_placesintegernumber — decimal places
currency_codestringnumber — 3-letter currency code (mutually exclusive with percentage)
commasbooleannumber — display thousands separators
percentagebooleannumber — format as percentage (mutually exclusive with currency_code)
descriptionstringjson — natural-language schema description (use with or instead of schema)
schemaobjectjson — JSON Schema object for structured output. Strict-mode requirements
(additionalProperties: false, full required arrays) are applied automatically — no need
to include them. Mark optional fields nullable (e.g. "type": ["string", "null"]).
Not supported: $ref, oneOf, allOf, not, non-object/array roots, nesting beyond
10 levels. anyOf is supported.
Attributes
typestringpropertiesmap of objectJSON Schema properties map
iso_8601booleandate — output ISO 8601 (cannot combine with month/day/year/delimiter)
monthstringdate — month format token
daystringdate — day format token
yearstringdate — year format token
delimiterstringdate — single-character delimiter between date parts
true_valuestringboolean — display string for true
false_valuestringboolean — display string for false
run_whenstringWhen this column should run per row (agent and tool-only columns). always (default),
any_filled / all_filled (based on the column's contexts, or its column-mapped tool params
in tool-only mode), or dynamic (rule-based — requires run_when_config).
run_when_configobjectRule-based run condition, required when run_when is dynamic. The column runs for a row
only when its rules match (match_mode: all = every rule must match, any = at least one).
Attributes
match_modestringHow rules combine — all (default) or any
rulesarray of objectNon-empty list of conditions evaluated against the row's cell values
Attributes
columnstringrequiredInput or output column header whose cell value is tested for this row
conditionstringrequiredTest applied to the cell value. is_empty / is_not_empty need no value.
The text_* conditions compare against value (case-insensitive, except
text_is_exactly which is an exact case-sensitive match).
valuestringComparison text for the text_* conditions (ignored for is_empty / is_not_empty)
toolstringTool-only mode: scrape, web_search, pdf, image, code, LinkedIn tools, etc.
urlstringColumn header or static URL (tool-only)
querystringColumn header or static query (tool-only, web_search)
date_startstringOptional start date for filtering search results. Format: YYYY-MM-DD (tool-only, web_search)
date_endstringOptional end date for filtering search results. Format: YYYY-MM-DD. Defaults to today if date_start is provided. (tool-only, web_search)
codestringJavaScript source (tool-only, code tool)
argsmap of stringNamed arguments for the code tool (tool-only). Keys are names referenced in your JavaScript
(e.g. args.first). Values are column headers (dynamic per row) or static strings.
proxy_country_codestringwait_longerbooleanskip_cacheboolean400Bad request - invalid input or missing required parameters
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
401Unauthorized - invalid or missing API key
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
403Forbidden - API access not enabled for account
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
404Resource not found
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
422Unprocessable entity - validation failed
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.