curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Email me new signups",
"description": "Sends an email whenever a User record is created.",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
},
"trigger": {
"config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
}
},
"change_summary": "Send to the ops alias instead",
"base_version_id": "6a1f0c2e9b3d4a5e6f708192"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}"
payload = {
"name": "Email me new signups",
"description": "Sends an email whenever a User record is created.",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
},
"trigger": { "config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
} },
"change_summary": "Send to the ops alias instead",
"base_version_id": "6a1f0c2e9b3d4a5e6f708192"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Email me new signups',
description: 'Sends an email whenever a User record is created.',
definition: {do: [], document: {dsl: '1.0.0', name: 'notify', version: '1.0.0'}},
trigger: {
config: {cron_expression: '0 9 * * *', timezone: 'UTC', trigger_type: 'scheduled'}
},
change_summary: 'Send to the ops alias instead',
base_version_id: '6a1f0c2e9b3d4a5e6f708192'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/workflows/{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://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}",
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' => 'Email me new signups',
'description' => 'Sends an email whenever a User record is created.',
'definition' => [
'do' => [
],
'document' => [
'dsl' => '1.0.0',
'name' => 'notify',
'version' => '1.0.0'
]
],
'trigger' => [
'config' => [
'cron_expression' => '0 9 * * *',
'timezone' => 'UTC',
'trigger_type' => 'scheduled'
]
],
'change_summary' => 'Send to the ops alias instead',
'base_version_id' => '6a1f0c2e9b3d4a5e6f708192'
]),
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://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}"
payload := strings.NewReader("{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}"
response = http.request(request)
puts response.read_body{
"id": "68b1c0d4e7b91d003c45a1f2",
"app_id": "6820f3a4e7b91d003c45a1f2",
"name": "Email me new signups",
"status": "active",
"run_accounting_available": true,
"social_post": {
"platform": "linkedin",
"title": "Meet our new app",
"body": "Our new app is ready to try.",
"hashtags": [
"launch"
]
},
"file_key": "email-me-new-signups",
"description": "Sends an email whenever a User record is created.",
"status_reason": "consecutive_failures",
"current_version_id": "9f2c1a7b3e5d84f60c1b2a9e7d4f8c3b6a5e2d1f0c9b8a7e6d5c4b3a2f1e0d9c",
"trigger": {
"config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
}
},
"app_type_context": {
"anchor_message_id": "68b1c0d4e7b91d003c45a1f2",
"conversation_id": "0195f2a1-4c3e-7b21-9f0d-2a5c8e1b4d77"
},
"last_run_at": "2026-08-25T09:12:44Z",
"last_run_status": "success",
"consecutive_failures": 0,
"total_runs": 48,
"successful_runs": 44,
"failed_runs": 3,
"created_date": "2026-07-02T11:04:00Z",
"updated_date": "2026-08-20T16:31:00Z",
"created_by": "you@example.com",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
}
}Update workflow (not imported apps)
Updates a workflow. Send only the fields you want to change. Pass change_summary to label what changed.
Anything you leave out keeps its stored value. Sending a definition that differs from the current one saves it as a new immutable version, and the workflow runs that version from then on. Earlier versions stay readable through List workflow versions.
Updating does not change whether the workflow is running.
This is only allowed from the app’s main branch.
curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Email me new signups",
"description": "Sends an email whenever a User record is created.",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
},
"trigger": {
"config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
}
},
"change_summary": "Send to the ops alias instead",
"base_version_id": "6a1f0c2e9b3d4a5e6f708192"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}"
payload = {
"name": "Email me new signups",
"description": "Sends an email whenever a User record is created.",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
},
"trigger": { "config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
} },
"change_summary": "Send to the ops alias instead",
"base_version_id": "6a1f0c2e9b3d4a5e6f708192"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Email me new signups',
description: 'Sends an email whenever a User record is created.',
definition: {do: [], document: {dsl: '1.0.0', name: 'notify', version: '1.0.0'}},
trigger: {
config: {cron_expression: '0 9 * * *', timezone: 'UTC', trigger_type: 'scheduled'}
},
change_summary: 'Send to the ops alias instead',
base_version_id: '6a1f0c2e9b3d4a5e6f708192'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/workflows/{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://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}",
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' => 'Email me new signups',
'description' => 'Sends an email whenever a User record is created.',
'definition' => [
'do' => [
],
'document' => [
'dsl' => '1.0.0',
'name' => 'notify',
'version' => '1.0.0'
]
],
'trigger' => [
'config' => [
'cron_expression' => '0 9 * * *',
'timezone' => 'UTC',
'trigger_type' => 'scheduled'
]
],
'change_summary' => 'Send to the ops alias instead',
'base_version_id' => '6a1f0c2e9b3d4a5e6f708192'
]),
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://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}"
payload := strings.NewReader("{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/workflows/{workflow_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Email me new signups\",\n \"description\": \"Sends an email whenever a User record is created.\",\n \"definition\": {\n \"do\": [],\n \"document\": {\n \"dsl\": \"1.0.0\",\n \"name\": \"notify\",\n \"version\": \"1.0.0\"\n }\n },\n \"trigger\": {\n \"config\": {\n \"cron_expression\": \"0 9 * * *\",\n \"timezone\": \"UTC\",\n \"trigger_type\": \"scheduled\"\n }\n },\n \"change_summary\": \"Send to the ops alias instead\",\n \"base_version_id\": \"6a1f0c2e9b3d4a5e6f708192\"\n}"
response = http.request(request)
puts response.read_body{
"id": "68b1c0d4e7b91d003c45a1f2",
"app_id": "6820f3a4e7b91d003c45a1f2",
"name": "Email me new signups",
"status": "active",
"run_accounting_available": true,
"social_post": {
"platform": "linkedin",
"title": "Meet our new app",
"body": "Our new app is ready to try.",
"hashtags": [
"launch"
]
},
"file_key": "email-me-new-signups",
"description": "Sends an email whenever a User record is created.",
"status_reason": "consecutive_failures",
"current_version_id": "9f2c1a7b3e5d84f60c1b2a9e7d4f8c3b6a5e2d1f0c9b8a7e6d5c4b3a2f1e0d9c",
"trigger": {
"config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
}
},
"app_type_context": {
"anchor_message_id": "68b1c0d4e7b91d003c45a1f2",
"conversation_id": "0195f2a1-4c3e-7b21-9f0d-2a5c8e1b4d77"
},
"last_run_at": "2026-08-25T09:12:44Z",
"last_run_status": "success",
"consecutive_failures": 0,
"total_runs": 48,
"successful_runs": 44,
"failed_runs": 3,
"created_date": "2026-07-02T11:04:00Z",
"updated_date": "2026-08-20T16:31:00Z",
"created_by": "you@example.com",
"definition": {
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
}
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Scopes
Headers
Path Parameters
ID of the workflow, as returned in id by List workflows.
Body
New definition. Leave it out to keep the current one. One that differs from the current definition is saved as a new immutable version, and the workflow runs it from then on. An invalid definition is rejected with the validation errors, and nothing is saved.
{
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
}
New trigger. Leave it out to keep the current one. See Triggers for its shape.
{
"config": {
"cron_expression": "0 9 * * *",
"timezone": "UTC",
"trigger_type": "scheduled"
}
}
The current_version_id this change was made from. When sent and the workflow has a newer version, the update is refused with workflow_version_conflict and nothing is saved, so a change made in the meantime isn't overwritten. Leave it out to save regardless.
"6a1f0c2e9b3d4a5e6f708192"
Response
The updated workflow.
Whether the workflow runs: active, inactive, or archived. See Workflow status for what each means and how it changes.
"active"
Why Base44 changed the workflow's status on its own, as one of consecutive_failures, end_condition_reached, migration_activation_failed, workflows_not_available, app_blocked, connector_disconnected, ownership_transferred, creator_unavailable, or session_ended. This is null when you changed the status yourself. See Workflow status for what each code means.
"consecutive_failures"
Caller-specific context captured when the workflow was created, such as the conversation that authored it. This API never sets it, so a workflow you create through it starts with null. Updating a workflow through this API doesn't clear an existing value either, so a workflow originally authored through the Base44 app editor or a superagent keeps its context here even after an API update.
{
"anchor_message_id": "68b1c0d4e7b91d003c45a1f2",
"conversation_id": "0195f2a1-4c3e-7b21-9f0d-2a5c8e1b4d77"
}
How the workflow's most recent run ended: success, failed, or cancelled. This is null before the first run or for hooks; use run history for hooks. See Workflow status for how this compares to a run's own status.
"success"
The steps the workflow runs, as a CNCF Serverless Workflow v1.0 document. This is null when no version has been saved yet. Only this endpoint returns it. List workflows leaves it out.
{
"do": [],
"document": {
"dsl": "1.0.0",
"name": "notify",
"version": "1.0.0"
}
}
Was this page helpful?