curl -X PATCH https://api.thinnest.ai/v2/calls/{call_id} \
-H "Authorization: Bearer $THINNESTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tags": [
"hot-lead",
"pricing-discussed"
],
"metadata": {
"crm_id": "SF-12345"
}
}'
import requests
url = "https://api.thinnest.ai/v2/calls/{call_id}"
headers = {
"Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
"Content-Type": "application/json",
}
payload = {
"tags": [
"hot-lead",
"pricing-discussed"
],
"metadata": {
"crm_id": "SF-12345"
}
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())
const response = await fetch("https://api.thinnest.ai/v2/calls/{call_id}", {
method: "PATCH",
headers: {
"Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"tags": [
"hot-lead",
"pricing-discussed"
],
"metadata": {
"crm_id": "SF-12345"
}
}),
});
const data = await response.json();
console.log(data);
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{
"tags": [
"hot-lead",
"pricing-discussed"
],
"metadata": {
"crm_id": "SF-12345"
}
}`)
req, _ := http.NewRequest("PATCH", "https://api.thinnest.ai/v2/calls/{call_id}", bytes.NewBuffer(payload))
req.Header.Set("Authorization", "Bearer YOUR_THINNESTAI_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Request Body
Call tags (replaces existing tags)
Custom key-value metadata
Response 200
Returns the full updated call object (see Get Call).
Errors
| Code | Description |
|---|---|
404 | Call not found |
403 | Not authorized to update this call |

