Skip to main content

talonic_documents_import_batch_ids

Set the source batch id of existing documents from a list or a CSV, e.g. to group documents by the delivery or job they came in. Give rows ({ document_id, batch_id }) or csv text with the columns document_id,batch_id. A document_id cell may hold the document id, its filename (with or without extension) or its source item id. An existing batch id is overwritten.

How an agent uses it

  • Returns: { updated, not_found[] } (the cells that matched no document).
  • A 403 names its reason (insufficient_scope, insufficient_role, no_person, person_inactive, workspace_read_only): the key's person must be allowed the same action in the Talonic web app, and an OAuth connection must have granted the scope. Tell the user; do not retry.

Availability

Listed per area (Spec runs, ingest, ingest settings, document organising, collections, saved filters, document types) when your role can use that area of the workspace. Being listed only means the tool is visible: Talonic checks your role again on every call.

Behaviour and cost

  • Not read-only. It can add to or change workspace data.

Parameters

ParameterTypeDescription
rowsobject[]One entry per document: which document, which batch id.
csvstringCSV text with a header row naming `document_id` and `batch_id`.
filenamestringName the upload carries; default batch-metadata.csv.

Example

Tool input
{}

Errors

A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.