Resume a paused execution
curl --request PATCH \
--url http://localhost:3000/api/program-executions/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": true
}
]
}
'import requests
url = "http://localhost:3000/api/program-executions/{id}/resume"
payload = { "autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": True
}
] }
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({autoPauseRules: [{nodeId: 'node_abc123', threshold: 100, resetOnResume: true}]})
};
fetch('http://localhost:3000/api/program-executions/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/program-executions/{id}/resume",
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([
'autoPauseRules' => [
[
'nodeId' => 'node_abc123',
'threshold' => 100,
'resetOnResume' => true
]
]
]),
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 := "http://localhost:3000/api/program-executions/{id}/resume"
payload := strings.NewReader("{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\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("http://localhost:3000/api/program-executions/{id}/resume")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/program-executions/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"programId": "<string>",
"organizationId": "<string>",
"audienceId": "<string>",
"flowId": "<string>",
"totalContacts": 123,
"contactsCompleted": 123,
"contactsFailed": 123,
"contactsPending": 123,
"contactsInProgress": 123,
"scheduledStartAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"scheduledStopAt": "<string>",
"actualStartAt": "<string>",
"actualEndAt": "<string>",
"autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": true
}
]
}Program Executions
Resume a paused execution
PATCH
/
api
/
program-executions
/
{id}
/
resume
Resume a paused execution
curl --request PATCH \
--url http://localhost:3000/api/program-executions/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": true
}
]
}
'import requests
url = "http://localhost:3000/api/program-executions/{id}/resume"
payload = { "autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": True
}
] }
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({autoPauseRules: [{nodeId: 'node_abc123', threshold: 100, resetOnResume: true}]})
};
fetch('http://localhost:3000/api/program-executions/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/program-executions/{id}/resume",
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([
'autoPauseRules' => [
[
'nodeId' => 'node_abc123',
'threshold' => 100,
'resetOnResume' => true
]
]
]),
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 := "http://localhost:3000/api/program-executions/{id}/resume"
payload := strings.NewReader("{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\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("http://localhost:3000/api/program-executions/{id}/resume")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/program-executions/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoPauseRules\": [\n {\n \"nodeId\": \"node_abc123\",\n \"threshold\": 100,\n \"resetOnResume\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"programId": "<string>",
"organizationId": "<string>",
"audienceId": "<string>",
"flowId": "<string>",
"totalContacts": 123,
"contactsCompleted": 123,
"contactsFailed": 123,
"contactsPending": 123,
"contactsInProgress": 123,
"scheduledStartAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"scheduledStopAt": "<string>",
"actualStartAt": "<string>",
"actualEndAt": "<string>",
"autoPauseRules": [
{
"nodeId": "node_abc123",
"threshold": 100,
"resetOnResume": true
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Execution ID
Body
application/json
Updated auto-pause rules to apply on resume. If provided, replaces existing rules.
Show child attributes
Show child attributes
Response
Execution ID
Program ID
Organization ID
Audience ID
Flow ID
Available options:
scheduled, running, paused, paused_no_credits, paused_threshold, completed, stopped, cancelled Total contacts in execution
Contacts completed successfully
Contacts failed
Contacts pending
Contacts currently in progress
Scheduled start time
Created at
Updated at
Scheduled stop time
Actual start time
Actual end time
Auto-pause rules
Show child attributes
Show child attributes
⌘I