POST
/v0/documentCollections/addDocumentsToCollectionAdd Documents To CollectionAdd 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 · uuidrequiredThe ID of the document collection you want to add to.
resourceIdentifiersarray of valuerequiredThe set of resource identifier for which you want to add to the collection.
Show child attributes
Show array items
oneOf · 2 options
Option 1object
externalResourceIdstringrequiredresourceTypestringrequiredtypestringrequiredDiscriminator value: external-resource-id
Option 2object
typestringrequiredDiscriminator value: url
urlstringrequired{
"collectionId": "00000000-0000-0000-0000-000000000000",
"resourceIdentifiers": [
{
"externalResourceId": "string",
"resourceType": "BOX_FILE",
"type": "external-resource-id"
}
]
}