Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Add Documents To Collection

POST/v0/documentCollections/addDocumentsToCollectionAdd Documents To Collection

Add documents to a document collection. Note that the documents must already exist in the document catalog to use this endpoint. If you want to upload a new document to a collection, use the uploadDocumentContents endpoint.

Request body

application/json
object
collectionIdstring · uuidrequired

The ID of the document collection you want to add to.

resourceIdentifiersarray of valuerequired

The set of resource identifier for which you want to add to the collection.

Show child attributes
Show array items
oneOf · 2 options
Option 1object
externalResourceIdstringrequired
resourceTypestringrequired

one of "GOOGLE_DRIVE_ITEM", "MICROSOFT_DRIVE_ITEM", "ZENDESK_TICKET", "ZENDESK_ARTICLE", "ZENDESK_GROUP", "ZENDESK_ARTICLE_SECTION", "ZENDESK_ARTICLE_CATEGORY", "CONFLUENCE_PAGE", "CONFLUENCE_SPACE", "JIRA_TICKET", "JIRA_PROJECT", "SALESFORCE_TASK", "BOX_FILE", "BOX_FOLDER", "NOTION_PAGE", "NOTION_DATABASE", "SLACK_CHANNEL", "MONGO_COLLECTION_SYNC", "UNKNOWN"

typestringrequired

Discriminator value: external-resource-id

one of "external-resource-id"

Option 2object
typestringrequired

Discriminator value: url

one of "url"

urlstringrequired
Example request
{
  "collectionId": "00000000-0000-0000-0000-000000000000",
  "resourceIdentifiers": [
    {
      "externalResourceId": "string",
      "resourceType": "BOX_FILE",
      "type": "external-resource-id"
    }
  ]
}

Responses

200Successful response
Documentation menu