curl --request POST \
--url https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"health": "<string>",
"override_reason": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}"
payload = {
"health": "<string>",
"override_reason": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({health: '<string>', override_reason: '<string>', reason: '<string>'})
};
fetch('https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}', 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/health/accounts/{account}/overrides/{pillar}",
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([
'health' => '<string>',
'override_reason' => '<string>',
'reason' => '<string>'
]),
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 := "https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}"
payload := strings.NewReader("{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": "<string>",
"confidence": 123,
"date": "2023-11-07T05:31:56Z",
"health": "<string>",
"id": "<string>",
"level": "Very Positive",
"locked_until": "2023-11-07T05:31:56Z",
"pillar": "overallHealth",
"reason": "<string>",
"source": "ai"
}{
"account": "<string>",
"confidence": 123,
"date": "2023-11-07T05:31:56Z",
"health": "<string>",
"id": "<string>",
"level": "Very Positive",
"locked_until": "2023-11-07T05:31:56Z",
"pillar": "overallHealth",
"reason": "<string>",
"source": "ai"
}Override the AI's health of a pillar
Replaces the AI’s assessment of one pillar of an account (overallHealth, or one of the six dimensions) with yours, as the app’s AI Health widget does: health, the reason shown with it, and override_reason, why you override. The AI leaves the pillar as you set it for grace_period_days (7, 14, 30, 60 or 90; your workspace’s default when left out), unless the override is reverted or replaced. Overriding an override replaces it, and a revert still restores the AI’s assessment. Each call is a new override, as each save in the app is: sending one again writes another row, and the lock runs from it. Returns the new row, as health.list shows it (source overridden, with locked_until). A pillar the AI has not assessed yet is a 409. The account’s CRM sync pushes the change as it does an edit in the app. Labels are your health scale’s (a 7-point value is stored as its label). A person’s key writes as that person, as the app does; a Member writes only the accounts in their book.
curl --request POST \
--url https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"health": "<string>",
"override_reason": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}"
payload = {
"health": "<string>",
"override_reason": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({health: '<string>', override_reason: '<string>', reason: '<string>'})
};
fetch('https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}', 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/health/accounts/{account}/overrides/{pillar}",
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([
'health' => '<string>',
'override_reason' => '<string>',
'reason' => '<string>'
]),
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 := "https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}"
payload := strings.NewReader("{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/health/accounts/{account}/overrides/{pillar}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"health\": \"<string>\",\n \"override_reason\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": "<string>",
"confidence": 123,
"date": "2023-11-07T05:31:56Z",
"health": "<string>",
"id": "<string>",
"level": "Very Positive",
"locked_until": "2023-11-07T05:31:56Z",
"pillar": "overallHealth",
"reason": "<string>",
"source": "ai"
}{
"account": "<string>",
"confidence": 123,
"date": "2023-11-07T05:31:56Z",
"health": "<string>",
"id": "<string>",
"level": "Very Positive",
"locked_until": "2023-11-07T05:31:56Z",
"pillar": "overallHealth",
"reason": "<string>",
"source": "ai"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Path Parameters
Body
Response
Successful Response
The 7-point rating, from Very Negative to Very Positive (the label is derived from it; on an override made with one of your scale's labels, that label's default rating). Null when the AI had too little data, or on older rows stored with another value
Very Positive, Positive, Slightly Positive, Neutral, Slightly Negative, Negative, Very Negative Was this page helpful?