Unable to Clear Server URL in Assistant Settings
# support
s
I’m trying to remove the server.url from an assistant, as I no longer want to use a server for webhook callbacks. However, when I try to clear the field from the dashboard UI, it says “updated” but the value doesn’t actually get removed. I also attempted this via the API using the PATCH /assistants/{id} endpoint by setting server.url to null or an empty string, but I receive the following error: "server.url must be a valid URL" Is there a recommended way to unset or delete the server.url field entirely? I need the assistant to operate without relying on an external server. Thanks in advance for your help!
v
Hi there! 👋 I understand you're trying to remove the server.url from your assistant. Unfortunately, I wasn't able to find a definitive, guaranteed method to completely unset the server.url field. However, I can explain why you're encountering the error and share some potential workarounds that other users have tried. ## Why You're Getting the Error The error you're seeing happens because the
server.url
property is validated using
@IsString()
and
@IsUrlWithHelpfulError
, which requires that the URL must be a valid URL string. Setting it to
null
or an empty string fails this validation [according to a Discord conversation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339941602872918068). ## Potential Workarounds Here are some approaches that other users have tried: 1. **Deselect server messages in the Vapi Dashboard**: Go to the Vapi Dashboard > Assistants > Select your Assistant > Advanced Tab > Scroll down to the server messages section and deselect the server message [according to a Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337184046379434057). 2. **Delete and recreate the assistant**: One user reported that "this issue was fixed by deleting the old assistant and making a new one" [as mentioned in Discord](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326809606671958080). 3. **Function calls without a server URL**: If you don't define a
serverUrl
(either at the account level or the assistant level), function calls will simply be added to the chat history [according to the documentation](https://docs.vapi.ai/assistants/function-calling). This might be useful if you want a function call to trigger an action on the frontend. ## Known Issues There are several known issues with the server URL in Vapi:
1. Users have reported that the Server URL Secret in the dashboard is not being saved correctly [as discussed in Discord](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331991829717188680). 2. The server URL secret in the assistant advanced settings is sometimes removed unexpectedly [according to user reports](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341692740454584331). Would you like me to provide more details on any of these workarounds or known issues? Sources: - [Discord conversation about server.url validation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339941602872918068) - [Discord thread about deselecting server messages](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337184046379434057) - [Discord conversation about deleting and recreating assistants](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326809606671958080) - [Documentation on function calls without server URL](https://docs.vapi.ai/assistants/function-calling) - [Discord thread about Server URL Secret issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331991829717188680) - [Discord conversation about server URL being removed unexpectedly](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341692740454584331)
k
Hey Samet, you have to set this server property to null to remove this server URL from your assistant using API.