Set a custom snapshot ID for an account. For personal API keys, this updates the key owner’s account. Organization API keys may specify account_id to target any account within their organization. This allows accounts to use a specific sandbox snapshot when creating new sandboxes, enabling reproducible environments with pre-configured tools, dependencies, and files.
Your Recoup API key. Learn more.
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 for organization API keys - org keys can specify an account_id for any account within their organization. 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"