Skip to main content
PUT
/
api
/
workflows
/
{id}
Update Workflow
curl --request PUT \
  --url https://encrata.com/api/workflows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "status": "<string>",
  "trigger": {},
  "steps": [
    {}
  ]
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.encrata.com/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

Requires a JWT token or API key in the Authorization header.
Authorization: Bearer YOUR_TOKEN

Request

id
string
required
The workflow ID to update.
name
string
New workflow name.
description
string
Updated description.
status
string
New status: active, paused, or draft.
trigger
object
Updated trigger configuration.
steps
array
Updated step definitions.

Example request

curl -X PUT "https://encrata.com/api/workflows/wf_abc123" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated pipeline",
    "status": "paused"
  }'

Response

Returns the updated workflow. A new immutable version is created automatically before the update.
{
  "id": "wf_abc123",
  "name": "Updated pipeline",
  "status": "paused",
  "version": 4,
  "updated_at": "2026-06-01T12:00:00Z"
}