API ReferenceWorkflowsUpdate Workflow Run

PATCH PATCH /workflows/{workflow_id}/runs/{run_id}

Headers: x-api-key, Content-Type: application/json
Body:

{ "labels": ["priority"] }

Use this to apply labels, notes, or custom metadata after a run completes.

cURL

curl -X PATCH https://api.algorythmos.fr/workflows/invoice-processing/runs/run_8Y2hP \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{"labels":["priority"]}'

JavaScript

await fetch('https://api.algorythmos.fr/workflows/invoice-processing/runs/run_8Y2hP', {
  method: 'PATCH',
  headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ labels: ['priority'] })
})

Python

import requests, os
requests.patch(
  'https://api.algorythmos.fr/workflows/invoice-processing/runs/run_8Y2hP',
  headers={'x-api-key': os.environ['ALG_KEY']},
  json={'labels': ['priority']}
)