Reference Data

Import a Spec's reference tables

Changed on

Creates the reference tables a portable Spec carries (its reference_data tables) in this workspace, so its lookups resolve. Returns one outcome per table and a map from each table's old id to its new reference table id for rebinding the Spec. dryRun reports without writing. A table that already exists is reported as a conflict and skipped unless named in overwrite or overwriteAll is set.

Requires the specs:write scope, and the person behind the credential must hold the workspace workspace permission. Send Idempotency-Key to make a retry return the first response instead of importing again.

post/v1/matching/reference-data/import-bundle

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Headers

Idempotency-Key, string

Unique key for idempotent requests, at most 64 characters (a longer key is refused with 400 invalid_idempotency_key before any work). A retry with the same key, request and API key within 24 hours returns the first response with Idempotent-Replayed: true; the same key on a different request or from another API key answers 422 idempotency_key_reused. On POST /v1/extract the key caches the extraction result for the workspace instead: any key of the workspace sending it gets that result with cached: true.

Request body

ReferenceBundleImportRequest required
tables, object[] required
dryRun, boolean
overwriteAll, boolean
overwrite, string[]

Response

Per-table outcome of the import.

ReferenceBundleImportResult required
outcomes, object[] required
id_map, object required

Changes