Update the workspace's cooldown rules
curl --request PATCH \
--url https://api.getoneprofile.ai/cooldown/settings/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dismiss_suggestion": true,
"person_cooldown_days": 183
}
'import requests
url = "https://api.getoneprofile.ai/cooldown/settings/"
payload = {
"dismiss_suggestion": True,
"person_cooldown_days": 183
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({dismiss_suggestion: true, person_cooldown_days: 183})
};
fetch('https://api.getoneprofile.ai/cooldown/settings/', 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.getoneprofile.ai/cooldown/settings/",
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([
'dismiss_suggestion' => true,
'person_cooldown_days' => 183
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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.getoneprofile.ai/cooldown/settings/"
payload := strings.NewReader("{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-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.patch("https://api.getoneprofile.ai/cooldown/settings/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/cooldown/settings/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}"
response = http.request(request)
puts response.read_body{
"is_suggested": true,
"person_cooldown_days": 123,
"suggestion_pending": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}contact_cooldown
Update the workspace's cooldown rules
The dial can be left off. Off is where every existing workspace starts. Turning it off or shortening it lets go on the contacts it stopped that it no longer would, where they stood.
PATCH
/
cooldown
/
settings
/
Update the workspace's cooldown rules
curl --request PATCH \
--url https://api.getoneprofile.ai/cooldown/settings/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dismiss_suggestion": true,
"person_cooldown_days": 183
}
'import requests
url = "https://api.getoneprofile.ai/cooldown/settings/"
payload = {
"dismiss_suggestion": True,
"person_cooldown_days": 183
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({dismiss_suggestion: true, person_cooldown_days: 183})
};
fetch('https://api.getoneprofile.ai/cooldown/settings/', 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.getoneprofile.ai/cooldown/settings/",
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([
'dismiss_suggestion' => true,
'person_cooldown_days' => 183
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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.getoneprofile.ai/cooldown/settings/"
payload := strings.NewReader("{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-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.patch("https://api.getoneprofile.ai/cooldown/settings/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/cooldown/settings/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dismiss_suggestion\": true,\n \"person_cooldown_days\": 183\n}"
response = http.request(request)
puts response.read_body{
"is_suggested": true,
"person_cooldown_days": 123,
"suggestion_pending": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
APIKeyHeaderHTTPBearer
Body
application/json
Response
Successful Response
True when this is the suggested value for a workspace with no saved rule.
Days during which a contacted person is not contacted again. Null is off.
True when the one-time suggested-default prompt has not been resolved.
Was this page helpful?