Recording
Update recording AI field
Update a recording 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 values for existing recordings; the new definition applies to new recordings going forward.
PUT
/
v1
/
recordings
/
fields
/
{fieldId}
cURL
curl --request PUT \
--url https://api.claap.io/v1/recordings/fields/{fieldId} \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"title": "Call outcome",
"prompt": {
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
]
},
"crmField": {
"entity": "Call",
"name": "call_outcome"
}
}
'import requests
url = "https://api.claap.io/v1/recordings/fields/{fieldId}"
payload = {
"title": "Call outcome",
"prompt": {
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
]
},
"crmField": {
"entity": "Call",
"name": "call_outcome"
}
}
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: 'Call outcome',
prompt: {
outputType: 'Select',
prompt: 'Pick the outcome that best matches how the call ended.',
coloredSelectOptions: [
{value: 'Next meeting booked', color: 'green'},
{value: 'Follow-up needed', color: 'yellow'},
{value: 'Not a fit', color: 'red'}
]
},
crmField: {entity: 'Call', name: 'call_outcome'}
})
};
fetch('https://api.claap.io/v1/recordings/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/recordings/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' => 'Call outcome',
'prompt' => [
'outputType' => 'Select',
'prompt' => 'Pick the outcome that best matches how the call ended.',
'coloredSelectOptions' => [
[
'value' => 'Next meeting booked',
'color' => 'green'
],
[
'value' => 'Follow-up needed',
'color' => 'yellow'
],
[
'value' => 'Not a fit',
'color' => 'red'
]
]
],
'crmField' => [
'entity' => 'Call',
'name' => 'call_outcome'
]
]),
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/recordings/fields/{fieldId}"
payload := strings.NewReader("{\n \"title\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\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/recordings/fields/{fieldId}")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/recordings/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\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"fieldId": "AiSummarySection#Lp3Wc8Yf5Jd2Hk7Rt1Bn4",
"title": "Call outcome",
"kind": "Field",
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
],
"crmField": {
"entity": "Call",
"label": "Call outcome",
"name": "call_outcome",
"source": "Hubspot",
"type": "Select"
},
"authorId": "Xk2Rd7Mv4Bn9Ts1Lq6Wf3",
"createdAt": "2026-05-14T09:30:00Z"
}
}The update is a full replace: always send the complete field definition, as an omitted
crmField is cleared. Updating a field does not regenerate values for existing recordings; the new definition applies to new recordings going forward.Authorizations
Path Parameters
Recording AI field identifier
Body
application/json
Response
Recording 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/recordings/fields/{fieldId} \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"title": "Call outcome",
"prompt": {
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
]
},
"crmField": {
"entity": "Call",
"name": "call_outcome"
}
}
'import requests
url = "https://api.claap.io/v1/recordings/fields/{fieldId}"
payload = {
"title": "Call outcome",
"prompt": {
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
]
},
"crmField": {
"entity": "Call",
"name": "call_outcome"
}
}
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: 'Call outcome',
prompt: {
outputType: 'Select',
prompt: 'Pick the outcome that best matches how the call ended.',
coloredSelectOptions: [
{value: 'Next meeting booked', color: 'green'},
{value: 'Follow-up needed', color: 'yellow'},
{value: 'Not a fit', color: 'red'}
]
},
crmField: {entity: 'Call', name: 'call_outcome'}
})
};
fetch('https://api.claap.io/v1/recordings/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/recordings/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' => 'Call outcome',
'prompt' => [
'outputType' => 'Select',
'prompt' => 'Pick the outcome that best matches how the call ended.',
'coloredSelectOptions' => [
[
'value' => 'Next meeting booked',
'color' => 'green'
],
[
'value' => 'Follow-up needed',
'color' => 'yellow'
],
[
'value' => 'Not a fit',
'color' => 'red'
]
]
],
'crmField' => [
'entity' => 'Call',
'name' => 'call_outcome'
]
]),
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/recordings/fields/{fieldId}"
payload := strings.NewReader("{\n \"title\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\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/recordings/fields/{fieldId}")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/recordings/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\": \"Call outcome\",\n \"prompt\": {\n \"outputType\": \"Select\",\n \"prompt\": \"Pick the outcome that best matches how the call ended.\",\n \"coloredSelectOptions\": [\n {\n \"value\": \"Next meeting booked\",\n \"color\": \"green\"\n },\n {\n \"value\": \"Follow-up needed\",\n \"color\": \"yellow\"\n },\n {\n \"value\": \"Not a fit\",\n \"color\": \"red\"\n }\n ]\n },\n \"crmField\": {\n \"entity\": \"Call\",\n \"name\": \"call_outcome\"\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"fieldId": "AiSummarySection#Lp3Wc8Yf5Jd2Hk7Rt1Bn4",
"title": "Call outcome",
"kind": "Field",
"outputType": "Select",
"prompt": "Pick the outcome that best matches how the call ended.",
"coloredSelectOptions": [
{
"value": "Next meeting booked",
"color": "green"
},
{
"value": "Follow-up needed",
"color": "yellow"
},
{
"value": "Not a fit",
"color": "red"
}
],
"crmField": {
"entity": "Call",
"label": "Call outcome",
"name": "call_outcome",
"source": "Hubspot",
"type": "Select"
},
"authorId": "Xk2Rd7Mv4Bn9Ts1Lq6Wf3",
"createdAt": "2026-05-14T09:30:00Z"
}
}