Skip to Content
Xeonr Developer Docs

Cancel Pipeline Run

POST
/uplim.api.v1.PipelineAdminService/CancelPipelineRun

Cancels an in-flight run: marks it CANCELLED with reason (default "Cancelled from admin UI") and cancels its PENDING and RUNNING step runs. The coordinator notices on its next status poll and tears down the running step's Job. Already-terminal runs are returned unchanged. NotFound for an unknown run.

Access: authenticated caller who owns the integration's OAuth client (and its application, when the client belongs to one), or any caller holding the upl:admin scope. System integrations such as Default require upl:admin. Missing integrations return NotFound; other callers get PermissionDenied.

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

id?string
Formatuuid
reason?string

Optional operator note explaining why the run was cancelled. Stored in PipelineRun.failure_message. Surfaced in the run-detail UI so the next viewer understands the cancel without context.

Lengthlength <= 65535
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.PipelineAdminService/CancelPipelineRun" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "run": "map[bucketId:42 enqueuedAt:2026-10-22T09:30:00Z failureMessage:Stuck on ffmpeg thumbnail; re-running after the fix finishedAt:2026-10-22T09:30:14Z id:a4e9c2d7-1f5b-4b83-8c6e-0d7f3a9b5e21 integrationId:5d2c8a41-7e3b-4f96-b0a8-1c9e6f3d2a75 pipelineUrn:acme:video resource:map[kind:PIPELINE_RESOURCE_KIND_UPLOAD uploadId:9b7e4d2a-3c1f-4e8b-a6d5-2f0c8e1b7a39] snapshotId:c71a5e93-2b8f-4d06-a4e1-9f3c6b2d8e17 startedAt:2026-10-22T09:30:02Z status:PIPELINE_RUN_STATUS_CANCELLED stepRuns:[map[attempt:1 finishedAt:2026-10-22T09:30:14Z startedAt:2026-10-22T09:30:02Z status:STEP_RUN_STATUS_CANCELLED stepId:thumbnail]] traceRunId:6b1f9d3e-8a2c-4e7b-9d05-3c8a1f6e2b47 trigger:PIPELINE_RUN_TRIGGER_UPLOAD_CREATED]"
}