Tasks
Cancel a task
Stop a running task and refund what its unfinished requests reserved. Rows that already finished keep their results, so poll the task afterwards to collect them. A task that has already reached a terminal status returns 409.
POST
Cancel a running task
Rows that already finished keep their results. Read them with Get task status after cancelling — the
data array holds only the finished rows, so unlike a completed bulk run it is not aligned to your inputs and cannot be joined back by position.Credits reserved by requests that had not finished are returned. You are only billed for the rows that produced data.
Response
The task was cancelled.
Resulting data once completed. For bulk runs this is an array aligned to the inputs: one element per input, in the same order they were submitted, with null for inputs that returned no data (len(data) equals the number of inputs, and data[i] is the result for input i). A single (non-bulk) run returns the result object directly.