Start typing to search.

API Reference

Import tasks and job templates from NDJSON bundle

View Markdown
POST /api/import

Accepts a newline-delimited JSON bundle in the request body. Streams an NDJSON response: one { "kind": "result", "result": ... } line per imported item (as it is processed), then a final { "kind": "summary", ... } line with full counts. Optional action filters which result lines are emitted; the summary always covers every record. Requires admin or superadmin role.

Operation IDimportBundle

Authentication

  • BearerAuth·http bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Query parameters

modestring
conflict_policystring
dry_runboolean
validate_onlyboolean
archived_task_policystring
normalize_namesboolean
actionstring

Only emit result lines with this action (summary is always full)

Request body

This request body is required.

Content typeapplication/x-ndjson

requeststring

Content typetext/plain

requeststring

Success response body

200NDJSON stream of result lines followed by a summary line

NDJSON stream of result lines followed by a summary line

Content typeapplication/x-ndjson

responseobject | object & BundleImportSummary

One NDJSON line from POST /api/import. Result lines stream as each record is processed; a final summary line always closes the stream.

One of
One of 1object
2 properties
kindstringrequired
resultobjectrequired
7 properties
kindstring
namestring
actionstring
from_versioninteger
to_versioninteger
messagestring
validationobject

Additional properties are allowed.

One of 2object
6 properties
kindstringrequired
createdintegerrequired
updatedintegerrequired
skippedintegerrequired
unchangedintegerrequired
errorsintegerrequired

Error responses

400Validation or parse error

Validation or parse error

Content typeapplication/json

responseErrorResponse