capabilities.work

Clone an iModel and Wait for It

A 2-step recipe with Bentley Systems. We can help you get access.

Recipe · 2 steps

Clone an iModel and Wait for It

with Bentley Systems · Digital Engineering & Asset Information Management

Start an asynchronous iModel clone and poll the target iTwin until it is ready.

  1. Submit the clone request. The iModels API accepts the asynchronous clone job with a 202 Accepted response and processes the copy in the background.
  2. Poll the iModels in the target iTwin, matching on the clone name, until the cloned iModel appears and reports an initialized state.
What you'll need to have ready
  • sourceIModelId: The iModel to clone from.
  • targetITwinId: The iTwin that will own the cloned iModel.
  • cloneName: The name for the new cloned iModel.
  • changesetId: An optional changeset id to pin the clone to a point in history.
For your developer

Arazzo workflow bentley-systems:clone-imodel, 2 operations: CloneIModel → GetIModels. Specs on APIs.io.