https://retellai.com/?utm_source=discord&utm_medium=seo logo
why is there an error every time i try to update t...
# ❓・ai-evy-support
d
@AI Evy why is there an error every time i try to update the inbound call agent for one of my numbers
a
Thanks for tagging me @dq7dominik. I'll look through relevant sources and get back to you shortly.
### Answer If you are getting an error when updating the inbound call agent for a number, one possible cause is leaving the outbound agent field empty. According to community discussion, you need to select a value for outbound agent to avoid the error when updating the agent [(1) ]() . Make sure both inbound_agent_id and outbound_agent_id are set when updating the phone number.
​ To learn more, see the sources I considered: [[1] Error updating agent](https://discord.com/channels/1186424376300679209/1304959549157019788) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
i want to change the outbound call agent from v2 to v5 it is currently v2 but i want to change it to v5 but everytime i try to do that i geht an error message failed to update agent
@AI Evy i want to change the outbound call agent from v2 to v5 it is currently v2 but i want to change it to v5 but everytime i try to do that i geht an error message failed to update agent
a
Thanks for the follow-up, @dq7dominik. I'll get back to you soon.
### Answer To update the outbound agent version for a phone number in Retell AI, you need to specify the outbound_agent_version field along with the outbound_agent_id and other required fields when making the update request. Make sure that both outbound_agent_id and outbound_agent_version are provided, as omitting required fields can result in an error. The version field must be an integer, so to update to v5, set outbound_agent_version to 5. If you continue getting an error, verify that the agent ID and version exist and are valid for your workspace [(1) ]() . Check out the official docs for the required fields and response structure: [Update Phone Number]()
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy also when i try to update the agent, so click on update deployment and select the right phone number, there comes an error message failed to deploy agent
a
Thanks for the follow-up, @dq7dominik. I'll get back to you soon.
### Answer If you are getting a "failed to deploy agent" error when updating the agent and selecting the phone number, this issue has been reported by other users as well. Sometimes, retrying the operation can resolve it. If the problem persists, it may be related to issues with the phone number or the transfer number being unreachable. Make sure all required fields are set and the phone number is active. If your agent workflow includes a transfer step and the transfer number is down, this can also cause deployment or publishing to fail [(1) ]() , [(2) ]() . Check out these potentially useful sources for troubleshooting and best practices: - [Cannot deploy new agent version though web interface / API]() - [Error Publishing Agent]() - [Setup versioning for agents]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Cannot deploy new agent version though web interface / API](https://discord.com/channels/1186424376300679209/1369013503154847889) [[2] Error Publishing Agent](https://discord.com/channels/1186424376300679209/1387459559404208208) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy i cant make any changes at all to the phone number even the nickname i get an error message
a
Thanks for the follow-up, @dq7dominik. I'll get back to you soon.
### Answer If you are unable to make any changes to a phone number (including updating the nickname) and receive an error message, ensure that you are providing all required fields and that the phone number is correctly registered in your Retell account. The update endpoint expects the phone number in E.164 format, and you must authenticate using your API key. Here is the example update pattern:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
 inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
 nickname: 'Frontdesk Number',
 outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(1) ]() If you are updating from the dashboard and still getting errors, possible causes based on documentation and community experience include: - The phone number is not properly registered or is in an invalid format. - Required fields (such as inbound_agent_id or outbound_agent_id) are missing or incorrect. - There may be restrictions or provider-specific limitations on certain numbers, as some Twilio numbers may not support all features [(2) ]() . If the number works for other operations but not updates, try another number to see if the issue is specific to that number. If the problem persists, you may want to verify the provider and consider contacting support if none of the above resolves it.
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] 404 Error when trying to add SMS to phone number](https://discord.com/channels/1186424376300679209/1415375849502281810) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.