Request task cancellation
Ask an enrichment task to stop. An active task moves to stop_asked; work already underway can still finish and consume credits. Inputs that have not started become skipped.
Check status until the task is completed, failed, or stopped, then read any results. You can safely repeat a stop request. See stop timing.
Required permissions: enrichments:tasks:create
Authorizations
AuthorizationstringheaderrequiredUse an account access token as Bearer <token>.
Path parameters
taskIdstringrequiredCopy the task's returned @id unchanged. New tasks use a 32-character hexadecimal UUID4; existing IDs with the task_ prefix remain supported.
"^(?:task_)?[a-f0-9]{32}$"Response
Stop request accepted, or the task was already terminal
202 · application/json
@idstringrequired@typestringrequired"EnrichmentTask"enrichmentIdstringrequireduniqueIdstringrequired"^[A-Za-z0-9_-]+$"minLength: 1maxLength: 128statusstringrequiredThe task is active while queued, running, or stop_asked. Read results after completed, failed, or stopped. Reaching maxCredits can finish with partial results. A stop ends in stopped unless the task also fails.
"queued", "running", "stop_asked", "completed", "failed", "stopped"errorobject | nullrequiredNull while the task is active or successfully completed. On failure, includes error details and a traceId when available. A stopped task can keep an error that occurred before it stopped.
Show child attributes
reasonstringrequiredStable reason for a failed task.
"dispatch_failed", "deadline_exceeded", "worker_failed", "enrichment_failed", "credits_error"codestringrequiredmessagestringrequiredtraceIdstring | nullrequiredcreatedAtstringrequired"date-time"startedAtstring | nullrequired"date-time"finishedAtstring | nullrequired"date-time"progressobjectrequiredShow child attributes
totalInputsintegerrequired1maximum: 10000finishedInputsintegerrequired0maximum: 10000outcomesobjectrequiredShow child attributes
successintegerrequired0noResultintegerrequired0errorintegerrequired0skippedintegerrequired0creditsobjectrequiredShow child attributes
usedstringrequired"^[0-9]+(\\.[0-9]+)?$"maxstring | nullrequiredNull when the caller omitted maxCredits (no limit).
"^[0-9]+(\\.[0-9]+)?$"linksobjectrequiredShow child attributes
objectAdditional properties are supported.
kindstringrequired"enrichment"