curl --request PATCH \
--url https://api.statisfy.com/v1/objects/account/records/{account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"arr": null,
"fields": {},
"name": null,
"renewal_date": null,
"type": null
}
'import requests
url = "https://api.statisfy.com/v1/objects/account/records/{account_id}"
payload = {
"arr": None,
"fields": {},
"name": None,
"renewal_date": None,
"type": None
}
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({arr: null, fields: {}, name: null, renewal_date: null, type: null})
};
fetch('https://api.statisfy.com/v1/objects/account/records/{account_id}', 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/objects/account/records/{account_id}",
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([
'arr' => null,
'fields' => [
],
'name' => null,
'renewal_date' => null,
'type' => null
]),
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/objects/account/records/{account_id}"
payload := strings.NewReader("{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\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("https://api.statisfy.com/v1/objects/account/records/{account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/account/records/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"account_summary__s_": "<string>",
"arr": 123,
"crm_account_id": "<string>",
"currency": "<string>",
"domain": "<string>",
"experience_health": "<string>",
"feature_requests_health": "<string>",
"fields": {},
"health": "<string>",
"health_summary": "<string>",
"hierarchy": "<string>",
"last_activity_date": "<string>",
"name": "<string>",
"outcomes_health": "<string>",
"owner_names": [
"<string>"
],
"owners": [
{
"user_id": "<string>",
"field": "<string>",
"role": "<string>",
"source": "<string>"
}
],
"parent": "<string>",
"product_usage_health": "<string>",
"relationship_health": "<string>",
"renewal_date": "<string>",
"risks_health": "<string>",
"type": "<string>"
}Update an account
Changes only the keys sent: standard fields at the top level (name, type, arr, renewal_date — when describe marks them writable), custom fields under fields. null clears a custom field that is not mandatory; standard fields cannot be cleared. Every key is checked before anything is written, and any problem refuses the whole request with a 422 listing each one in details: an unknown key, a value of the wrong type or outside the field’s constraints or options, a mandatory field set to null, an owner field naming someone who is not a user, or a field describe marks writable: false (a field another system owns, which the message names where it can, or a type the API cannot write yet). The error’s code is field_not_writable when every problem is of that kind, validation_failed otherwise. A write to a field that syncs to your CRM reaches it on the next sync, as an edit in the app does. Returns the updated account.
curl --request PATCH \
--url https://api.statisfy.com/v1/objects/account/records/{account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"arr": null,
"fields": {},
"name": null,
"renewal_date": null,
"type": null
}
'import requests
url = "https://api.statisfy.com/v1/objects/account/records/{account_id}"
payload = {
"arr": None,
"fields": {},
"name": None,
"renewal_date": None,
"type": None
}
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({arr: null, fields: {}, name: null, renewal_date: null, type: null})
};
fetch('https://api.statisfy.com/v1/objects/account/records/{account_id}', 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/objects/account/records/{account_id}",
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([
'arr' => null,
'fields' => [
],
'name' => null,
'renewal_date' => null,
'type' => null
]),
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/objects/account/records/{account_id}"
payload := strings.NewReader("{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\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("https://api.statisfy.com/v1/objects/account/records/{account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/account/records/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"arr\": null,\n \"fields\": {},\n \"name\": null,\n \"renewal_date\": null,\n \"type\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"account_summary__s_": "<string>",
"arr": 123,
"crm_account_id": "<string>",
"currency": "<string>",
"domain": "<string>",
"experience_health": "<string>",
"feature_requests_health": "<string>",
"fields": {},
"health": "<string>",
"health_summary": "<string>",
"hierarchy": "<string>",
"last_activity_date": "<string>",
"name": "<string>",
"outcomes_health": "<string>",
"owner_names": [
"<string>"
],
"owners": [
{
"user_id": "<string>",
"field": "<string>",
"role": "<string>",
"source": "<string>"
}
],
"parent": "<string>",
"product_usage_health": "<string>",
"relationship_health": "<string>",
"renewal_date": "<string>",
"risks_health": "<string>",
"type": "<string>"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Response
Successful Response
Was this page helpful?