When creating tools, after tool is created it's no...
# support
s
Hi I created a set of tools, and saw one of the tools needed an update to the server url (webhook). It's seems that this text box is not editable! Is the only way to change the server URL in a tool is to actually delete the whole tool and re-create it??
v
@syberkitten Hello! No need to worry, you don't have to delete the whole tool to update the server URL. You can change the server URL for a tool at the function call level either through the dashboard or via code. In the dashboard, navigate to the assistant section and find the “Functions” tab. There, you can add or update function calls and optionally assign each a specific server URL without having to recreate the entire tool. If you prefer to do it via code, you can set the server URL at the time of making the function call by specifying it in the appropriate parameter. If you need assistance with updating the server URL through the dashboard or via code, please let me know, and I'll be happy to guide you through the process!
You can continue this conversation by mentioning me in the message.
s
use api to update server url.
s
The feature was not implemented in the UI, that's what you are saying?
s
if you can't update from UI use api.
s
Can you share the payload / API call I can use (in postman) or CURL ?
s
Make PATCH request to
https://api.vapi.ai/tool/{id}
Copy code
json
  "server": {
    "url": "string",
  }
s
Thanks 🙂