createSnapshot
Agent Runtimes / api/runtimes/snapshots / createSnapshot
Function: createSnapshot()
createSnapshot(
token,data,baseUrl?):Promise<CreateCodeSandboxSnapshotResponse>
Defined in: src/api/runtimes/snapshots.ts:38
Create a snapshot of a runtime instance.
Parameters
token
string
Authentication token
data
CreateCodeSandboxSnapshotRequest
Snapshot creation configuration
baseUrl?
string = DEFAULT_SERVICE_URLS.RUNTIMES
Base URL for the API (defaults to production Runtimes URL)
Returns
Promise<CreateCodeSandboxSnapshotResponse>
Promise resolving to the created snapshot response
Throws
If authentication token is missing or invalid