Docs Open org

API reference

Imports API

Import batches

GET /orgs/{org}/imports

Imports, newest first.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.

Responses

200
OK. Paged_ImportJob application/json

POST /orgs/{org}/imports

Starts an import batch.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.

Request body

application/json, StartImport.

FieldTypeDescription
dry_runbooleanA rehearsal.
source requiredstringThe source app.

Responses

201
Created. ImportJob application/json

GET /orgs/{org}/imports/{id}

An import's status and counts.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The id.

Responses

200
OK. ImportJob application/json

POST /orgs/{org}/imports/{id}/finish

Marks an import done (no more batches).

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The id.

Responses

200
OK. ImportJob application/json

POST /orgs/{org}/imports/{id}/undo

Undoes an import as a unit: every page it touched goes back to its revision before the import (pages it created go to the trash). 409 undo_conflict if any page changed since.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
id requiredpathstring (uuid)The id.

Responses

200
OK. ImportJob application/json
409
Conflict. ProblemBody application/json