---
title: "Update workflow definition"
method: PATCH
path: "/api/v1/workflows/definitions/{id}"
tags: ["Workflows"]
---

# Update workflow definition

`PATCH /api/v1/workflows/definitions/{id}`

## Request

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

Update an existing workflow definition.

## Path parameters

- `id` string, required: Workflow definition ID

## Request body

- UpdateWorkflowDefinitionRequest
  - `name` string
  - `description` string
  - `version` string
  - `workflow_json` object: Workflow graph JSON
  - `node_count` integer
  - `custom_nodes` object
  - `is_active` boolean

## Response `200`

Workflow definition updated

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

## Other responses

- `404`: Workflow definition 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)
