Set ask every time
curl --request POST \
--url https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"askEveryTime": false,
"updatedAt": "2026-11-14T10:32:05.120Z"
}
'import requests
url = "https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time"
payload = {
"askEveryTime": False,
"updatedAt": "2026-11-14T10:32:05.120Z"
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({askEveryTime: false, updatedAt: '2026-11-14T10:32:05.120Z'})
};
fetch('https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time', 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.cloudcruise.com/saved-decisions/{id}/ask-every-time",
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([
'askEveryTime' => false,
'updatedAt' => '2026-11-14T10:32:05.120Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"cc-key: <api-key>"
],
]);
$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.cloudcruise.com/saved-decisions/{id}/ask-every-time"
payload := strings.NewReader("{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cc-key", "<api-key>")
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.cloudcruise.com/saved-decisions/{id}/ask-every-time")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflowId": "<string>",
"nodeId": "<string>",
"nodeHash": "<string>",
"errorMsg": "<string>",
"errorVariant": 123,
"errorVariantDescription": "<string>",
"errorType": "<string>",
"recovery": "<string>",
"alwaysAsk": true,
"approvedAt": "<string>",
"used": 123,
"lastUsedAt": "<string>",
"updatedAt": "<string>"
}Workflow API
Set ask every time
Turns Ask every time on or off for one saved decision. With askEveryTime: false the agent applies the saved recovery automatically the next time the same error comes back; with askEveryTime: true a person is asked every time and offered the saved recovery. Workspace owners and members can call it; viewers get 403. The change is logged against the user who owns the API key.
POST
/
saved-decisions
/
{id}
/
ask-every-time
Set ask every time
curl --request POST \
--url https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"askEveryTime": false,
"updatedAt": "2026-11-14T10:32:05.120Z"
}
'import requests
url = "https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time"
payload = {
"askEveryTime": False,
"updatedAt": "2026-11-14T10:32:05.120Z"
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({askEveryTime: false, updatedAt: '2026-11-14T10:32:05.120Z'})
};
fetch('https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time', 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.cloudcruise.com/saved-decisions/{id}/ask-every-time",
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([
'askEveryTime' => false,
'updatedAt' => '2026-11-14T10:32:05.120Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"cc-key: <api-key>"
],
]);
$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.cloudcruise.com/saved-decisions/{id}/ask-every-time"
payload := strings.NewReader("{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cc-key", "<api-key>")
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.cloudcruise.com/saved-decisions/{id}/ask-every-time")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/saved-decisions/{id}/ask-every-time")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"askEveryTime\": false,\n \"updatedAt\": \"2026-11-14T10:32:05.120Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflowId": "<string>",
"nodeId": "<string>",
"nodeHash": "<string>",
"errorMsg": "<string>",
"errorVariant": 123,
"errorVariantDescription": "<string>",
"errorType": "<string>",
"recovery": "<string>",
"alwaysAsk": true,
"approvedAt": "<string>",
"used": 123,
"lastUsedAt": "<string>",
"updatedAt": "<string>"
}Authorizations
Body
application/json
Response
The updated saved decision
A saved decision for an error the recovery agent has seen before.
Was this page helpful?

