API ReferenceManagementProject Management
GET
/v1/mgmt/project/snapshot/import/async/{importId}

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Path Parameters

importId*string

The importId returned by Import Snapshot (Async).

Gets the status of an asynchronous snapshot import started by the same caller: running, completed or failed, and each import step that started, with its status (running, completed or failed) and the items that failed in it. Steps after a failed step did not run and are not listed. Once the import is completed or failed, the status can be read only once.

curl -X GET "https://api.descope.com/v1/mgmt/project/snapshot/import/async/string"
{  "status": "running",  "error": "string",  "steps": [    {      "name": "string",      "status": "running",      "failures": [        {          "item": "string",          "error": "string"        }      ]    }  ]}
export interface Response {status?: ("running" | "completed" | "failed")/** * Why the import failed, set only when status is failed. */error?: string/** * The import steps that started, in the order they ran. */steps?: ImportSnapshotStep[]}export interface ImportSnapshotStep {/** * The step name, matching the snapshot key used in excludes where one exists (for example connectors or flows), or validate, settings, messagingproviders, customdomain or passwordrolepolicies. */name?: stringstatus?: ("running" | "completed" | "failed")/** * What failed in this step. A flows or localization step lists each failed item and still imports the others. */failures?: ImportSnapshotStepFailure[]}export interface ImportSnapshotStepFailure {/** * The ID of the flow, widget or messaging template that failed, empty when the whole step failed. */item?: string/** * Why the item or step failed. */error?: string}
Was this helpful?