Set a custom snapshot ID for an account. By default, updates the key owner’s account. Pass account_id to target a specific account the API key has access to. This allows accounts to use a specific sandbox snapshot when creating new sandboxes, enabling reproducible environments with pre-configured tools, dependencies, and files.
Snapshot configuration parameters
The snapshot ID to set for the account. This snapshot will be used as the base environment when creating new sandboxes.
"snap_abc123def456"
The GitHub repository URL to associate with the account's sandbox environment. Must be a valid URL.
"https://github.com/org/repo"
UUID of the account to update the snapshot for. Only applicable when the authenticated account has access to multiple accounts via organization membership. If not provided, updates the snapshot for the API key's own account.
Snapshot ID updated successfully
The account ID this snapshot belongs to
"550e8400-e29b-41d4-a716-446655440000"
The snapshot ID that was set for the account
"snap_abc123def456"
When the snapshot expires
"2027-01-01T00:00:00.000Z"
The GitHub repository URL associated with the sandbox
"https://github.com/org/repo"
When the snapshot record was created
"2025-01-01T00:00:00.000Z"