Skip to main content
PUT
/
workflows
/
{workflowID}
Update workflow
curl --request PUT \
  --url https://workflows.eachlabs.run/api/v1/workflows/{workflowID} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "Text to Image Generator v2",
  "description": "Enhanced image generation with multiple models",
  "categories": [
    "image-generation",
    "ai",
    "production"
  ],
  "locked": true,
  "production": true
}
'
import requests

url = "https://workflows.eachlabs.run/api/v1/workflows/{workflowID}"

payload = {
"name": "Text to Image Generator v2",
"description": "Enhanced image generation with multiple models",
"categories": ["image-generation", "ai", "production"],
"locked": True,
"production": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Text to Image Generator v2',
description: 'Enhanced image generation with multiple models',
categories: ['image-generation', 'ai', 'production'],
locked: true,
production: true
})
};

fetch('https://workflows.eachlabs.run/api/v1/workflows/{workflowID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://workflows.eachlabs.run/api/v1/workflows/{workflowID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Text to Image Generator v2',
'description' => 'Enhanced image generation with multiple models',
'categories' => [
'image-generation',
'ai',
'production'
],
'locked' => true,
'production' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://workflows.eachlabs.run/api/v1/workflows/{workflowID}"

payload := strings.NewReader("{\n \"name\": \"Text to Image Generator v2\",\n \"description\": \"Enhanced image generation with multiple models\",\n \"categories\": [\n \"image-generation\",\n \"ai\",\n \"production\"\n ],\n \"locked\": true,\n \"production\": true\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://workflows.eachlabs.run/api/v1/workflows/{workflowID}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Text to Image Generator v2\",\n \"description\": \"Enhanced image generation with multiple models\",\n \"categories\": [\n \"image-generation\",\n \"ai\",\n \"production\"\n ],\n \"locked\": true,\n \"production\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://workflows.eachlabs.run/api/v1/workflows/{workflowID}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Text to Image Generator v2\",\n \"description\": \"Enhanced image generation with multiple models\",\n \"categories\": [\n \"image-generation\",\n \"ai\",\n \"production\"\n ],\n \"locked\": true,\n \"production\": true\n}"

response = http.request(request)
puts response.read_body
{
  "workflow_id": "50741f40-8621-4d46-8a91-dff4d873be98",
  "name": "Text to Image Generator",
  "description": "Generates images from text prompts",
  "slug": "text-to-image-generator",
  "categories": [
    "image-generation",
    "ai"
  ],
  "locked": false,
  "production": false,
  "latest_version_id": "v2",
  "status": "active",
  "trigger_count": 42,
  "created_at": "2025-12-01T10:00:00Z",
  "updated_at": "2025-12-07T15:30:00Z",
  "versions": [
    {
      "version_id": "v1",
      "slug": "text-to-image-generator",
      "locked": false,
      "production": true,
      "allowed_to_share": false,
      "trigger_count": 15,
      "created_at": "2025-12-01T10:00:00Z",
      "updated_at": "2025-12-05T14:20:00Z",
      "status": "active",
      "definition": {}
    }
  ]
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

workflowID
string
required

Unique workflow identifier

Example:

"wf_abc123"

Body

application/json

Update workflow metadata. All fields are optional - only provided fields will be updated.

Note: To update the workflow definition (steps), use the version endpoints instead.

name
string

Human-readable workflow name

Example:

"Text to Image Generator v2"

description
string

Detailed description of what the workflow does

Example:

"Enhanced image generation with multiple models"

categories
string[]

List of category slugs

Example:
["image-generation", "ai", "production"]
locked
boolean

Lock/unlock the workflow from modifications

production
boolean

Mark as production workflow

Response

Workflow updated successfully

Complete workflow information including all versions

workflow_id
string<uuid>
required

Unique workflow identifier

Example:

"50741f40-8621-4d46-8a91-dff4d873be98"

name
string
required

Human-readable workflow name

Example:

"Text to Image Generator"

description
string
required

Workflow description

Example:

"Generates images from text prompts"

slug
string

URL-friendly workflow identifier

Example:

"text-to-image-generator"

categories
string[]

Category slugs

Example:
["image-generation", "ai"]
locked
boolean

Whether workflow is locked

Example:

false

production
boolean

Whether this is a production workflow

Example:

false

latest_version_id
string

Most recently updated version ID

Example:

"v2"

status
enum<string>

Workflow lifecycle status

Available options:
active,
archived,
deleted
Example:

"active"

trigger_count
integer

Total number of times this workflow has been triggered

Example:

42

created_at
string<date-time>

RFC3339 timestamp when workflow was created

Example:

"2025-12-01T10:00:00Z"

updated_at
string<date-time>

RFC3339 timestamp when workflow was last updated

Example:

"2025-12-07T15:30:00Z"

versions
object[]

List of all versions for this workflow

Last modified on May 28, 2026