Extend list build
/datasets/{id}/extendLegacy. More rows for a finished list build. For new work use POST /datasets/{id}/rows/build on the dataset.
On a legacy list build's id the new rows land in its legacy enrichment. On a dataset's ds_... id this is POST /datasets/{id}/rows/build in the list-build body and response shape: the new rows are added to that dataset, deduplicated on its index column, and dataset_id on the run is the same dataset.
The new rows are deduplicated against the source build's rows. Identifiers and attributes are inherited from the source and cannot be overridden; qualifiers and max_items may be replaced, and an optional prompt adds a new instruction. Inherited attributes are not researched; they are filled by auto_run_enrichment: true or a later POST /enrich with the dataset_id the run returns.
Returns a fresh list-build run (the source build is untouched), with legacy.
Path parameters
idstringrequiredId of the source list build (ds_...)
Request body
promptstringOptional new instruction (e.g. "more rows like these but in Europe")
qualifiersarray of stringOptional replacement qualifiers (defaults to the source's). Max 10.
max_itemsintegerMax new rows (defaults to the source's max_items)
dataset_webhook_urlstring uriauto_run_enrichmentbooleanauto_run_enrichment_webhook_urlstring uriestimate_costCurrentEstimateCostParamValidate and price the request without running or charging anything; the 200 response is the credit estimate.
max_creditsCurrentMaxCreditsParamCredit ceiling. Refused with 422 credit_cap_exceeded (nothing charged) when the estimate's maximum exceeds it.
Responses
200estimate_cost only — the credit estimate; nothing was started
estimate_costbooleanrequiredtypestringrequiredThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
201Extension build started — the run plus dataset_id / source_dataset_id / max_items, with legacy
idstringrequiredThe run id (run_...)
typestringrequiredstatusstringrequiredCompletion estimate of a run in the current API's shape (the full shape is RunProgress in the current API docs).
Attributes
percent_completenumbernullableestimated_seconds_remainingnumbernullableelapsed_secondsnumbernullablecredits_usednumberThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanapp_urlstring uriresult_urlstring urirequiredstarted_atstring date-timenullablefinished_atstring date-timenullableerrorobjectnullableAttributes
typestringmessagestringstopped_reasonstringwebhook_urlstring uriCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
dataset_idstringThe new build's dataset id
source_dataset_idstringmax_itemsinteger400The request is malformed or names a conflicting parameter combination (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
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.
403The API key's account may not access this resource or endpoint (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
404No resource with that id on this account (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
422The request is valid but can't be executed — insufficient_credits, credit_cap_exceeded when max_credits is set, validation (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs