curl --request DELETE \
--url https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold', 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.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"field": "probability",
"opportunity_id": "1042",
"released": true
}Hand a renewal's forecast field back to the AI
Ends a person’s hold on the field through the app’s own Let the AI update this: the value stays until the AI’s next run. released is false when the field was not held; that is not an error. A 404 for an unknown or deleted opportunity, or when renewal forecasting was never set up. Through the API a Member changes only the renewals on accounts in their book (403 otherwise); the app does not limit this. A digital worker’s key is a 403: renewals are a person’s workflow. Recorded as the key’s person’s, as an edit is (403 for a key no current member stands behind). Needs AI CSP, as Renewals does in the app: other workspaces get a 403 not_entitled.
curl --request DELETE \
--url https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold', 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.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/renewals/{opportunity_id}/fields/{field}/hold")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"field": "probability",
"opportunity_id": "1042",
"released": true
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Path Parameters
probability (Renewal Forecast, 0-100), expected_amount (Renewal Expected Amount, 0 or more), decision (Renewal Decision: renewing or not_renewing) or risks (Renewal Risks, a list of risk names)
probability, expected_amount, decision, risks "probability"
Response
Successful Response
Was this page helpful?