1. Tasks
  2. Snapshot Restore

Tasks

Snapshot Restore

The Snapshot Restore task is used to restore a stub or GPT chat task to a previously saved state using a snapshot created by the Snapshot Save task.

Use cases

  • Restore a stub to a previous state for faster development iterations
  • Restore a GPT chat task to a known good state
  • Quickly switch between different stub configurations

Basic usage

loading...

Parameters

snapshot_type
required
string

The type of snapshot to restore. Valid values are:

  • "stub": Restores a stub snapshot
  • "gpt_chat_task": Restores a GPT chat task snapshot

snapshot_name
optional
string

The name of the snapshot to restore. If not provided, the default snapshot name "_default" will be used.

Default: "_default"

Result

loading...

Properties

restored.stubber_snapshot_uuid

string

The unique identifier of the snapshot that was restored.


restored.snapshot_name

string

The name of the snapshot that was restored.


restored.snapshot_type

string

The type of snapshot that was restored ("stub" or "gpt_chat_task").


restored.stubref

string

The reference to the stub that was restored.

Examples

Restore Default Stub Snapshot

Restore the stub to its default snapshot state:

loading...

Restore Named Stub Snapshot

Restore the stub to a specific named snapshot:

loading...

Restore GPT Chat Task Snapshot

Restore a specific GPT chat task to a saved state:

loading...