Deactivate a workflow
curl --request PUT \
--url https://production.runalloy.com/workflows/deactivate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"userId": "<string>",
"workflowId": "<string>",
"workflowName": "<string>"
}
'import requests
url = "https://production.runalloy.com/workflows/deactivate"
payload = {
"userId": "<string>",
"workflowId": "<string>",
"workflowName": "<string>"
}
headers = {
"Authorization": "<authorization>",
"x-api-version": "<x-api-version>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Authorization: '<authorization>',
'x-api-version': '<x-api-version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({userId: '<string>', workflowId: '<string>', workflowName: '<string>'})
};
fetch('https://production.runalloy.com/workflows/deactivate', 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://production.runalloy.com/workflows/deactivate",
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([
'userId' => '<string>',
'workflowId' => '<string>',
'workflowName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"x-api-version: <x-api-version>"
],
]);
$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://production.runalloy.com/workflows/deactivate"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("x-api-version", "<x-api-version>")
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://production.runalloy.com/workflows/deactivate")
.header("Authorization", "<authorization>")
.header("x-api-version", "<x-api-version>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.runalloy.com/workflows/deactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["x-api-version"] = '<x-api-version>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"activated": false
}Workflows
Deactivate a workflow
Disables all future invocations and runs for a given workflow.
By deactivating a workflow, this endpoint will turn off any events or webhooks a workflow is subscribed to. May be reactivated by the Reactivate workflow endpoint.
PUT
/
workflows
/
deactivate
Deactivate a workflow
curl --request PUT \
--url https://production.runalloy.com/workflows/deactivate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"userId": "<string>",
"workflowId": "<string>",
"workflowName": "<string>"
}
'import requests
url = "https://production.runalloy.com/workflows/deactivate"
payload = {
"userId": "<string>",
"workflowId": "<string>",
"workflowName": "<string>"
}
headers = {
"Authorization": "<authorization>",
"x-api-version": "<x-api-version>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Authorization: '<authorization>',
'x-api-version': '<x-api-version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({userId: '<string>', workflowId: '<string>', workflowName: '<string>'})
};
fetch('https://production.runalloy.com/workflows/deactivate', 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://production.runalloy.com/workflows/deactivate",
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([
'userId' => '<string>',
'workflowId' => '<string>',
'workflowName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"x-api-version: <x-api-version>"
],
]);
$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://production.runalloy.com/workflows/deactivate"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("x-api-version", "<x-api-version>")
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://production.runalloy.com/workflows/deactivate")
.header("Authorization", "<authorization>")
.header("x-api-version", "<x-api-version>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.runalloy.com/workflows/deactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["x-api-version"] = '<x-api-version>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"activated": false
}Headers
The version of the API to use. The current API version is 2025-09.
Body
application/json
The Id of the user you want to lookup. Returned from the Create User endpoint. Note: you can also use the Embedded user's username in this field.
The Id of the workflow to activate. If you pass this parameter, then workflowName is not required.
The name of the workflow to activate. If you pass this parameter, then workflowId is not required.
Response
200 - application/json
200
Example:
false
⌘I

