Update a workflow
curl --request PATCH \
--url https://posttu.com/api/v1/workflow/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "wkf_123abc",
"name": "Updated Workflow",
"description": "Automates daily posts",
"definition": {
"trigger": {
"name": "schedule"
},
"steps": []
}
}
'import requests
url = "https://posttu.com/api/v1/workflow/{id}"
payload = {
"id": "wkf_123abc",
"name": "Updated Workflow",
"description": "Automates daily posts",
"definition": {
"trigger": { "name": "schedule" },
"steps": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'wkf_123abc',
name: 'Updated Workflow',
description: 'Automates daily posts',
definition: {trigger: {name: 'schedule'}, steps: []}
})
};
fetch('https://posttu.com/api/v1/workflow/{id}', 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://posttu.com/api/v1/workflow/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'wkf_123abc',
'name' => 'Updated Workflow',
'description' => 'Automates daily posts',
'definition' => [
'trigger' => [
'name' => 'schedule'
],
'steps' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://posttu.com/api/v1/workflow/{id}"
payload := strings.NewReader("{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://posttu.com/api/v1/workflow/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/workflow/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "wkf_new123",
"name": "<string>",
"description": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Workflows
Update workflow
Update general workflow metadata (name, description, active state) or replace canvas definition graph.
PATCH
/
api
/
v1
/
workflow
/
{id}
Update a workflow
curl --request PATCH \
--url https://posttu.com/api/v1/workflow/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "wkf_123abc",
"name": "Updated Workflow",
"description": "Automates daily posts",
"definition": {
"trigger": {
"name": "schedule"
},
"steps": []
}
}
'import requests
url = "https://posttu.com/api/v1/workflow/{id}"
payload = {
"id": "wkf_123abc",
"name": "Updated Workflow",
"description": "Automates daily posts",
"definition": {
"trigger": { "name": "schedule" },
"steps": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'wkf_123abc',
name: 'Updated Workflow',
description: 'Automates daily posts',
definition: {trigger: {name: 'schedule'}, steps: []}
})
};
fetch('https://posttu.com/api/v1/workflow/{id}', 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://posttu.com/api/v1/workflow/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'wkf_123abc',
'name' => 'Updated Workflow',
'description' => 'Automates daily posts',
'definition' => [
'trigger' => [
'name' => 'schedule'
],
'steps' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://posttu.com/api/v1/workflow/{id}"
payload := strings.NewReader("{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://posttu.com/api/v1/workflow/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/workflow/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"wkf_123abc\",\n \"name\": \"Updated Workflow\",\n \"description\": \"Automates daily posts\",\n \"definition\": {\n \"trigger\": {\n \"name\": \"schedule\"\n },\n \"steps\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "wkf_new123",
"name": "<string>",
"description": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Updates fields on an existing workflow container or replaces its canvas node/edge definition graph.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier of the workflow (wkf_...). |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated display name for the workflow. |
description | string | No | Updated description text. |
isActive | boolean | No | Set true to activate production trigger listener, false to pause. |
definition | object | No | Optional xyflow graph definition containing nodes and edges. |
cURL Example
curl -X PATCH "https://posttu.com/api/v1/workflow/wkf_abc123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated TechCrunch Digest",
"description": "Auto-posts AI summaries every Monday and Thursday"
}'
Response Example
{
"data": {
"id": "wkf_abc123",
"name": "Updated TechCrunch Digest",
"description": "Auto-posts AI summaries every Monday and Thursday",
"isActive": true,
"updatedAt": "2026-07-29T22:16:00.000Z"
},
"success": true
}
Authorizations
Body
application/json
Last modified on July 30, 2026

