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.
- Create the workspace that will hold the collection and documents.
- Create an extractor-bound collection inside the new workspace.
- Upload the file into the new collection with wait=false so an identifier is returned for polling.
- 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.