Update File Using API
# support
r
I want to update the contents of a file but I was only able to update the file's name. Is it possible to update the contest of the file using the API or do I need to delete and create the file each time?
v
@Rulo Yes, it is possible to update the contents of a file using the API without having to delete and recreate it. You would typically use an update or patch endpoint provided by the API, which allows you to modify the contents of the file directly on the server. If you provide me with the specific details or parameters required for the update, I can guide you through the process or call the appropriate function for you.
You can continue this conversation by mentioning me in the message.
r
Here is the link (https://docs.vapi.ai/api-reference/files/update-file) of the documentation that shows how to update a file. The documentation only shows how to change the document name. I was able to change the documents name but not its contents.
s
@Rulo you can only update the file name. You have to upload a new file.
4 Views