Uploading a new file to a discourse AI persona

I am trying to reverse engineer the API call to upload files to an AI persona, I’ve replicated the call in postman, and it gives me a 200 response back:

But when I go back to the AI persona, the file is no where to be found. Is there something I’m missing?

2 Likes

Answering my own question here, but I found the answer! You also need to make a put to the AI persona for it to show up there:

Include the ID of the file you uploaded in the put body:

...
"rag_uploads": [
    {"id": 13666}
]
...

And now it shows up under the persona!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.