Read an import
A stored import you uploaded: its report (meta.report), its state and, while and after it is applied, its progress (meta.progress: the files uploaded, the modules and manuals committed, the save points) and the change set it writes into (relationships.changeSet); meta.failure says why it failed. Kept for an hour after its upload, or after its job ended. Needs the admin.roles permission.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
importId*stringThe import’s ID (a UUID). One that names no stored import, malformed or not, someone else’s or one removed after it expired, is 404.
uuidX-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
application/vnd.api+json- response
data*curl -X GET 'http://localhost:3000/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "data": { "type": "Import", "id": "string", "attributes": { "importer": "string", "options": { "property1": null, "property2": null }, "updateExisting": true, "baseRef": "string", "baseCommit": "string", "fileName": "string", "size": -9007199254740991, "state": "dry-run", "createdBy": { "kind": "user", "id": "string" }, "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }, "relationships": { "changeSet": { "data": { "type": "ChangeSet", "id": "string" } } }, "meta": { "dryRun": true, "report": { "valid": true, "applicable": true, "applicableWithoutRefused": true, "formatVersion": -9007199254740991, "source": { "system": "string", "exportedAt": "string", "description": "string" }, "issues": [ { "severity": "error", "code": "string", "message": "string", "pointer": "string", "at": "string" } ], "items": [ { "kind": "module", "id": "string", "lang": "string", "pointer": "string", "sourceId": "string", "action": "create", "reasons": [ { "severity": "error", "code": "string", "message": "string", "pointer": "string", "at": "string" } ], "issues": [ { "severity": "error", "code": "string", "message": "string", "pointer": "string", "at": "string" } ], "issueCount": -9007199254740991, "passthrough": -9007199254740991, "size": -9007199254740991, "usedAs": "image" } ], "converterReport": [ { "sourceId": "string", "sourceKind": "string", "message": "string", "module": "string", "block": "string" } ], "counts": { "modules": -9007199254740991, "manuals": -9007199254740991, "assets": -9007199254740991, "create": -9007199254740991, "update": -9007199254740991, "skip": -9007199254740991, "refuse": -9007199254740991, "passthrough": -9007199254740991, "errors": -9007199254740991, "warnings": -9007199254740991, "converterReport": -9007199254740991 } }, "progress": { "phase": "queued", "assets": { "done": -9007199254740991, "total": -9007199254740991 }, "files": { "done": -9007199254740991, "total": -9007199254740991 }, "commits": [ "string" ] }, "failure": { "code": "string", "detail": "string" } } }}