Bind the decision to the asset version
Suppose two videos of a handbag share a filename, but one is the export for a discontinued color. An operator notices the mistake while background removal is running. Before asking Pixelcut to stop, record the old input revision and its provider job ID. Flag that revision as superseded in the delivery queue. That way a result arriving while the cancel request is in flight cannot be assigned to the new color.
| Response from the cancel call | Action for your product workflow |
|---|---|
| HTTP 200 and a cancellation message | Close the task as cancelled and keep its old input revision attached to the record. |
HTTP 409 with job_finished |
Look up that same ID. If it completed, exclude the result from delivery. If it failed, keep the error for diagnosis. |
| HTTP 404 or a request timeout | Reconcile the local ID and current status before showing a cancellation confirmation. |
The cancel endpoint is POST /v1/video/remove-background/job/{jobId}/cancel. The status endpoint is GET /v1/video/remove-background/job/{jobId}. A fresh clip can use a destination identifier of its own. Run a final approval check against the actual filename, color and opening frame before passing the replacement to the store or compositor.
Cancellation eligibility and credit accounting are separate questions. These endpoint references establish which jobs can be stopped and which responses to expect. Confirm billing in the account if the team needs to reconcile processing costs.