---
title: "Update execution status"
method: PATCH
path: "/api/v1/workflows/{workflowExecutionH}"
tags: ["Workflows"]
---

# Update execution status

`PATCH /api/v1/workflows/{workflowExecutionH}`

## Request

- Base URL: `https://numonic.ai`
- URL: `https://numonic.ai/api/v1/workflows/{workflowExecutionH}`
- Auth: API key in header `x-api-key`

Update the status of a workflow execution.

## Path parameters

- `workflowExecutionH` string, required: Workflow execution hash (40-char hex SHA-1)

## Request body

- UpdateExecutionRequest
  - `executionStatus` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled'
  - `completedNodes` integer
  - `failedNodes` integer
  - `errorMessage` string
  - `executionMetadata` object

## Response `200`

Execution status updated

- SuccessMessage
  - `message` string, required: Human-readable success message

## Other responses

- `404`: Execution not found

---

[API](https://skmtc.dev/numonic/apis/numonic-api.md) · [All operations](https://skmtc.dev/numonic/apis/numonic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/numonic/apis/numonic-api/revisions/6c559bef1e35?raw)
