Skip to main content
Labels are the only part of a drive you can change. The labels you send replace all of the drive’s current labels; they aren’t merged with them. Set up your SDK or the CLI before running these examples.
Drives are in pre-release in the Baseten CLI (baseten drive and baseten sandbox drive) and in the Python, TypeScript, and Go SDKs (baseten, @basetenlabs/client, @basetenlabs/sandbox, and baseten-go). Commands, methods, and responses can change. The Management API drive operations are experimental.

Replace a drive’s labels

To set the labels of shared-notes to project=alpha and env=dev:
Run the following code:
To remove every label, pass labels: {}.

Next steps

Get a drive

Check a drive’s status, region, and labels.

List drives

Find drives by name or status.