Document Collections

Remove Document From Collection

POST
Remove a document from a document collection. The document still exists in the document catalog but will not longer be searchable in this document collection.

Request

This endpoint expects an object.
documentId
UUIDRequired
documentCollectionId
UUIDRequired
POST
1curl -X POST https://api.credal.ai/api/v0/documentCollections/removeDocumentFromCollection \
2 -H "Authorization: Bearer <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "documentId": "82e4b12a-6990-45d4-8ebd-85c00e030c24",
6 "documentCollectionId": "82e4b12a-6990-45d4-8ebd-85c00e030c24"
7}'