Partially update an env_var object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.
EnvVar id
Fields to update
The name of the environment variable
The value of the environment variable. Will be encrypted at rest.
Optional metadata associated with the environment variable when managed via the function secrets API
Optional classification for the secret (for example, the AI provider name)
Returns the env_var object
Unique identifier for the environment variable
The type of the object the environment variable is scoped for
organization, project, function The id of the object the environment variable is scoped for
The name of the environment variable
Date of environment variable creation
Date the environment variable was last used
Optional metadata associated with the environment variable when managed via the function secrets API
Optional classification for the secret (for example, the AI provider name)
The category of the secret: env_var for regular environment variables, ai_provider for AI provider API keys
env_var, ai_provider