Skip to main content
POST
Restore a catalog from a zip backup

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Path Parameters

name
string
required

Target catalog name. Uncataloged (any case) is refused.

Pattern: ^[A-Za-z0-9_-]+$

Query Parameters

mode
enum<string>
default:new
Available options:
new,
overwrite
confirm
string

Required for mode=overwrite; must equal the catalog name.

restoreState
boolean
default:true

false skips every tap's incremental state (for a copy that should start from scratch).

regenerateScripts
boolean
default:false

By default each pipeline's archived AI scripts become its live scripts, with no model call. true regenerates them on this install instead. An archived script with no .json record, or whose record no longer matches the archived pipeline's instruction and source schema or this server's script contract, is regenerated either way (or, when the pipeline already has a live script that matches, kept); scriptsRegenerated and scriptsKept name each with the reason.

Body

multipart/form-data
file
file
required

The catalog archive (zip, at most 1000 entries and 50 MB uncompressed).

Response

Every member restored

restored
object
skipped
string[]

Validation-schema objects that already existed on this install and were kept.

failed
object[]
missingSecrets
object[]

Secrets the archive's items reference that do not exist on this install. Create them before enabling the items. Only secrets the key may read are checked; the others are named in warnings as not checked.

warnings
string[]
sourceEnvironment
string

The DATRIS_ENV label of the install the archive was exported from. Absent when the exporting install had no label. Informational only; a cross-environment restore is never refused, but it adds a warning.

targetEnvironment
string

The DATRIS_ENV label of this install. Absent when unset.

tapsDisabled
boolean

Always true; restored taps are saved disabled.

stateRestored
boolean

True when at least one tap's incremental state was restored.

dependentTaps
integer

Restored taps whose dependencies (declared dependsOn, else inferred from the script) include another restored tap. Run those sources before testing these taps; see GET /api/v1/catalog/{name}/enable-order.

scriptsImported
string[]

AI scripts (<pipeline>/<kind>) restored as-is from the archive, with the archived fingerprint, model and generation time; no model call was made for them.

scriptsRegenerated
object[]

AI scripts that were not imported and were regenerated on this install (or are pending until the first run), each with the reason, for example no script record in the archive; re-export to carry it for an archive exported before script records were included, or regenerateScripts was requested.

scriptsKept
object[]

AI scripts that were not imported but whose live script on this install already matched the pipeline's instruction and source schema, so it was left in place unchanged (no model call). The reason says why the archived script was not used.