Secret.update. Each successful update stores a new immutable version and makes it current. Version numbers increase and are never reused within the same secret, but failed updates can leave gaps.
Secret.update.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Store a new value for a secret and have running sandboxes pick it up on their next request.
Secret.update. Each successful update stores a new immutable version and makes it current. Version numbers increase and are never reused within the same secret, but failed updates can leave gaps.
import { Secret } from 'e2b'
const secret = await Secret.update('stripe_api_key', 'sk_live_new...')
console.log(secret.version) // 2
from e2b import Secret
secret = Secret.update("stripe_api_key", "sk_live_new...")
print(secret.version) # 2
Secret.update.Was this page helpful?