Creates a new invocation from a completed invocation, optionally copying partial progress from the original invocation’s journal.
The new invocation will have a different invocation ID. Use the from parameter to specify how much of the original journal to preserve.
Invocation identifier.
From which entry index the invocation should restart from. By default the invocation restarts from the beginning (equivalent to 'from = 0'), retaining only the input of the original invocation. When greater than 0, the new invocation will copy the old journal prefix up to 'from' included, plus eventual completions for commands in the given prefix. If the journal prefix contains commands that have not been completed, this operation will fail.
x >= 0When restarting from journal prefix, provide a deployment id to use to replace the currently pinned deployment id. If 'latest', use the latest deployment id. If 'keep', keeps the pinned deployment id. When not provided, the invocation will resume on latest. Note: this parameter can be used only in combination with 'from'. Specifies which deployment to use when resuming or restarting an invocation.
Keep Invocation restarted successfully with a new invocation ID
The invocation was restarted as new.
The invocation id of the new invocation.