Workflows
Set Live Workflow Version
Set a workflow version as live (activate triggers) or take it offline.
POST
/
workflow
/
workflows
/
{workflow_id}
/
versions
/
{version_number}
/
set-live
Set Live Workflow Version
curl --request POST \
--url https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live \
--header 'Content-Type: application/json' \
--data '
{
"is_live": true
}
'import requests
url = "https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live"
payload = { "is_live": True }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({is_live: true})
};
fetch('https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live', 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://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'is_live' => true
]),
CURLOPT_HTTPHEADER => [
"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://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live"
payload := strings.NewReader("{\n \"is_live\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live")
.header("Content-Type", "application/json")
.body("{\n \"is_live\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_live\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"version": 1,
"organization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_published": false,
"is_live": false,
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"created_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"definition": {
"key": {
"id": null,
"name": null,
"next_step_id": null,
"ai_config": null,
"ui_config": null,
"type": null,
"source": null,
"operation": null,
"operation_input": null
}
},
"starting_step": "string"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Organization ID for user PATs (pat_ prefix tokens)
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
⌘I
Set Live Workflow Version
curl --request POST \
--url https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live \
--header 'Content-Type: application/json' \
--data '
{
"is_live": true
}
'import requests
url = "https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live"
payload = { "is_live": True }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({is_live: true})
};
fetch('https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live', 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://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'is_live' => true
]),
CURLOPT_HTTPHEADER => [
"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://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live"
payload := strings.NewReader("{\n \"is_live\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live")
.header("Content-Type", "application/json")
.body("{\n \"is_live\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions/{version_number}/set-live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_live\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"version": 1,
"organization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_published": false,
"is_live": false,
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"created_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"definition": {
"key": {
"id": null,
"name": null,
"next_step_id": null,
"ai_config": null,
"ui_config": null,
"type": null,
"source": null,
"operation": null,
"operation_input": null
}
},
"starting_step": "string"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
