Skip to main content
PATCH
/
api
/
data-platform
/
workflow-runs
/
{id}
curl --request PATCH \
  --url https://app.solya.app/api/data-platform/workflow-runs/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "completedAt": "2026-05-23T06:05:30.000Z",
  "outputSummary": {
    "totalErrorsRecorded": 0,
    "totalItemsAdded": 48,
    "totalItemsSkipped": 3,
    "totalPlansCreated": 2
  },
  "status": "COMPLETED"
}
'
{
  "completedAt": "2026-05-23T06:05:30.000Z",
  "id": "run-uuid-wf-8b2a3c",
  "status": "COMPLETED"
}

Authorizations

Authorization
string
header
required

Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.

Path Parameters

id
string
required

Unique identifier of the workflow run

Minimum string length: 1

Body

application/json
status
enum<string>
required

New status for the workflow run

Available options:
PENDING,
RUNNING,
COMPLETED,
FAILED,
CANCELLED
completedAt
string<date-time>

Override the completion timestamp; defaults to server time when transitioning to a terminal state

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
errorMessage
string

Human-readable error detail; provide when status=FAILED

outputSummary
object

Aggregated run-level counters; set on the terminal PATCH

triggerContext
object

Trigger context captured when the run started; set on the first PATCH that transitions to RUNNING

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true