v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
AI

Cancel AI job

Request cancellation of an AI job. This endpoint is idempotent — calling it on an already-cancelled or completed job returns success with the current state.

  • For QUEUED jobs, cancellation is immediate
  • For EXECUTING jobs, the worker will stop after completing its current iteration
  • Jobs in a DELIVERING state cannot be cancelled as they are already finalizing results. Only the job owner or organization admins can cancel jobs.
post/v1/ai/jobs/{jobId}/cancel

Path parameters

jobIdstring uuid required

The unique identifier of the AI job to cancel

Response

Job cancelled successfully

jobIdstring uuid

The unique identifier for the cancelled job

state'CANCELLED'

The new state of the job