patch https://api.codegpt.co/api/v1/agent//documents
This endpoint is used to upload and train the document-like knowledge base for the agents. To do this, you need the agent's ID
and organization ID
. Only text/plain files are allowed.
Add the documents as an array like this:
{ "agent_documents": [ "0000-0000-0000-0000" ] }