Let the AI update an AI field on a contact again
curl --request DELETE \
--url https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock"
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock', 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/contact/records/{contact_id}/ai-fields/{field_key}/lock",
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock"
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock")
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_key": "<string>",
"released": true
}contacts
Let the AI update an AI field on a contact again
Ends the hold a person’s override took, so the AI updates the field on its next run, as “Let the AI update this” does in the app. The value stays until then. A field that is not held answers released false and changes nothing. The edit is recorded as the person the key acts for, as in the app, so a workspace key or a digital worker cannot make it (a 403); a Member edits only the records in their book.
DELETE
/
v1
/
objects
/
contact
/
records
/
{contact_id}
/
ai-fields
/
{field_key}
/
lock
Let the AI update an AI field on a contact again
curl --request DELETE \
--url https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock"
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock', 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/contact/records/{contact_id}/ai-fields/{field_key}/lock",
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock"
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/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/contact/records/{contact_id}/ai-fields/{field_key}/lock")
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_key": "<string>",
"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
Was this page helpful?