Company
Update company AI field
Update a company AI field. The update is a full replace: always send the complete field definition, as omitted optional attributes are cleared. Updating a field does not regenerate the values already produced; the new definition applies to companies as new activity comes in.
PUT
/
v1
/
companies
/
fields
/
{fieldId}
cURL
curl --request PUT \
--url https://api.claap.io/v1/companies/fields/{fieldId} \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"title": "Company overview",
"prompt": {
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are."
}
}
'import requests
url = "https://api.claap.io/v1/companies/fields/{fieldId}"
payload = {
"title": "Company overview",
"prompt": {
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are."
}
}
headers = {
"X-Claap-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Claap-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Company overview',
prompt: {
outputType: 'Paragraph',
prompt: 'Summarise what this company does and what its current priorities are.'
}
})
};
fetch('https://api.claap.io/v1/companies/fields/{fieldId}', 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.claap.io/v1/companies/fields/{fieldId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Company overview',
'prompt' => [
'outputType' => 'Paragraph',
'prompt' => 'Summarise what this company does and what its current priorities are.'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Claap-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.claap.io/v1/companies/fields/{fieldId}"
payload := strings.NewReader("{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Claap-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.put("https://api.claap.io/v1/companies/fields/{fieldId}")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/companies/fields/{fieldId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Claap-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"fieldId": "CompanyAiSection#Jc5Ry8Nt3Pv1Gh6Ws2Ld9",
"title": "Company overview",
"kind": "Field",
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are.",
"authorId": "Xk2Rd7Mv4Bn9Ts1Lq6Wf3",
"createdAt": "2026-05-14T09:30:00Z"
}
}The update is a full replace: always send the complete field definition. Company AI fields cannot be mapped to a CRM property. Updating a field does not regenerate the values already produced; the new definition applies to companies as new activity comes in.
Authorizations
Path Parameters
Company AI field identifier
Body
application/json
Response
Company AI field was successfully updated
An AI field: a custom prompt with a typed output, evaluated by AI. Usable as an AiSection view column through its fieldId.
Show child attributes
Show child attributes
⌘I
cURL
curl --request PUT \
--url https://api.claap.io/v1/companies/fields/{fieldId} \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"title": "Company overview",
"prompt": {
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are."
}
}
'import requests
url = "https://api.claap.io/v1/companies/fields/{fieldId}"
payload = {
"title": "Company overview",
"prompt": {
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are."
}
}
headers = {
"X-Claap-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Claap-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Company overview',
prompt: {
outputType: 'Paragraph',
prompt: 'Summarise what this company does and what its current priorities are.'
}
})
};
fetch('https://api.claap.io/v1/companies/fields/{fieldId}', 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.claap.io/v1/companies/fields/{fieldId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Company overview',
'prompt' => [
'outputType' => 'Paragraph',
'prompt' => 'Summarise what this company does and what its current priorities are.'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Claap-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.claap.io/v1/companies/fields/{fieldId}"
payload := strings.NewReader("{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Claap-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.put("https://api.claap.io/v1/companies/fields/{fieldId}")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/companies/fields/{fieldId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Claap-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Company overview\",\n \"prompt\": {\n \"outputType\": \"Paragraph\",\n \"prompt\": \"Summarise what this company does and what its current priorities are.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"fieldId": "CompanyAiSection#Jc5Ry8Nt3Pv1Gh6Ws2Ld9",
"title": "Company overview",
"kind": "Field",
"outputType": "Paragraph",
"prompt": "Summarise what this company does and what its current priorities are.",
"authorId": "Xk2Rd7Mv4Bn9Ts1Lq6Wf3",
"createdAt": "2026-05-14T09:30:00Z"
}
}