v7

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-07355390.1 KB
invocation

Restart invocation as new

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.

patch/invocations/{invocation_id}/restart-as-new

Path parameters

invocation_idstring required

Invocation identifier.

Query parameters

frominteger

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.

'Keep'

Keep the currently pinned deployment

OR
'Latest'

Use the latest deployment

OR

When 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'.

Response

Invocation restarted successfully with a new invocation ID

new_invocation_idstring required