(API) 'POST' Upload File via API
# support
m
Hi, is it possible to add a function for the 'POST' Upload File : → adding a facultative field to associate directly the file to the assistant ID ? And this operation adds documents one after the other, without deleting the previous ones. You can call it "association" Then we will just have to enter : → the Authorization* → the file* → the association to the assistant ID Because at present, you need (by API) : 1. Uploading the document and sending it as an API POST 2. Retrieve the file ID via the response + Repeat the operation as many times as there are files to associate with the assistant 3. Then make a PATCH Update Assistant with the file ID with all the files So, this is at least 3 API call and it's complex. @Sahil @User https://cdn.discordapp.com/attachments/1272669520254861343/1272669520724496508/image.png?ex=66bbd15a&is=66ba7fda&hm=953607d5f0f6ef45741966fae6bdc174feb0ea2753d5a6c8d75b21e2bc3489fe&
v
@Matthieu GARCIA Hello! I understand you're looking to streamline the process of uploading files and associating them with an assistant ID. While I can't directly change the API's functionality, I can certainly pass on your feedback to our development team for consideration in future updates. In the meantime, you can continue to use the current process, which involves uploading each file and then associating them with the assistant using the PATCH Update Assistant endpoint. If you need assistance with this process or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
m
@User
s
@Shubham Bajaj can you please look into it?
Umm, currently no. You can put it on feature request.
m
It’s ok @Sahil I’ve done as the documentation shows and it works nicely
s
That's awesome.
7 Views