https://retellai.com/?utm_source=discord&utm_medium=seo logo
p
@AI Evy can you help?
a
Thanks for tagging me @phenomenal_courgette_39111. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the documentation, the PATCH
/v2/update-call/{call_id}
API supports updating
override_dynamic_variables
during an active call [(1) ]() . The API accepts an object of key-value pairs of strings to override or add dynamic variables set in the agent . However, there's an important distinction in how dynamic variables are handled. The Update Call API uses
override_dynamic_variables
, while the Get Call API returns
retell_llm_dynamic_variables
and
collected_dynamic_variables
[(2) ]() . From the community discussion, there appears to be a known issue where metadata updates during a call may not be immediately reflected in the ongoing conversation [(3) ]() . The metadata during a call has different states, and the new state at the start of the call is being used and is not replicated . For updating dynamic variables during an active call, the community suggests using the inbound webhook approach instead of the PATCH endpoint . The inbound webhook allows you to set dynamic variables when the call starts by responding with this format :
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
        "customer_name": "John Doe"
    }
  }
}
The changelog indicates that updating calls with external context and overriding dynamic variables is now live [(4) ]() , but the community discussions suggest there may still be timing or state management issues with mid-call updates.
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Using Patch (Call Update), not passing metadata back to call](https://discord.com/channels/1186424376300679209/1405378389443088444) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​