capabilities.work

Provision Collection and Ingest a Document

A 4-step recipe with Affinda. We can help you get access.

Recipe · 4 steps

Provision Collection and Ingest a Document

with Affinda

Build a workspace and collection, then upload and parse a document into it.

  1. Create the workspace that will hold the collection and documents.
  2. Create an extractor-bound collection inside the new workspace.
  3. Upload the file into the new collection with wait=false so an identifier is returned for polling.
  4. Poll the document until meta.ready becomes true.
What you'll need to have ready
  • organization: The organization identifier to create the workspace under.
  • workspaceName: The display name for the new workspace.
  • collectionName: The display name for the new collection.
  • extractor: The extractor identifier the collection should use.
  • file: The document file contents (binary) to upload.
  • fileName: Optional file name to store the document under.
For your developer

Arazzo workflow affinda:provision-and-ingest-document, 4 operations: createWorkspace → createCollection → createDocument → getDocument. Specs on APIs.io.