post https://api.chatdoc.com/api/v2/collections
Create an empty collection
Response:
Similar with POST /documents/upload
, response id
also called upload_id
, which can be used for document related APIs:
GET /documents/{upload_id}
DELETE /documents/{upload_id}
POST /questions?upload_id={upload_id}
Upon created you can add sub documents to the collection by:
POST /documents/upload
POST /collections/clone-documents
.