PATCH
/
invocations
/
{invocation_id}
/
restart-as-new
{
  "new_invocation_id": "<string>"
}

Path Parameters

invocation_id
string
required

Invocation identifier.

Query Parameters

from
integer

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.

Required range: x >= 0
deployment
string

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

new_invocation_id
string
required

The invocation id of the new invocation.