Updates a stored call. Use it after a call ends to attach your own IDs or outcomes, or to reduce what is kept. For a call that is still running, use Update live call, which also reaches the agent.
Request#
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
call_id |
string | Yes | The call to update. |
Body#
| Field | Type | Required | Description |
|---|---|---|---|
metadata |
object | No | Merged over the existing metadata (top-level keys replace). |
override_dynamic_variables |
object | No | Merged over retell_llm_dynamic_variables. Non-string values are stored as JSON strings. |
data_storage_setting |
string | No | everything, everything_except_pii or basic_attributes_only. On an ended call, anything other than everything is applied right away (PII scrubbing or transcript and recording removal). |
Example request#
curl -X PATCH "https://api.tried.com.au/v2/update-call/call_8d1e0f2a3b4c5d6e7f8a9b0c" \
-H "Authorization: Bearer $TRIED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"metadata": {
"crm_outcome": "confirmed"
},
"data_storage_setting": "everything_except_pii"
}'const res = await fetch("https://api.tried.com.au/v2/update-call/call_8d1e0f2a3b4c5d6e7f8a9b0c", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.TRIED_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"metadata": {
"crm_outcome": "confirmed"
},
"data_storage_setting": "everything_except_pii"
}),
});
const data = await res.json();import os, requests
res = requests.patch(
"https://api.tried.com.au/v2/update-call/call_8d1e0f2a3b4c5d6e7f8a9b0c",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
json={
"metadata": {
"crm_outcome": "confirmed",
},
"data_storage_setting": "everything_except_pii",
},
)
data = res.json()Response#
200 OK with the updated call object.
Errors#
| Status | When |
|---|---|
400 |
Validation failed. |
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the admin scope. |
404 |
No call with this ID in the workspace. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.
Compatibility notes#
metadata and override_dynamic_variables merge into the stored objects instead of replacing them.