Update Environment Variables
Updates multiple environment variables for a given project. Only the value of each environment variable can be updated.
Usage
import { v0 } from 'v0-sdk'const result = await v0.projects.updateEnvVars({projectId: 'project_abc123',environmentVariables: [{id: 'env_def456',value: 'new_value_123',},{id: 'env_ghi789',value: 'updated_secret_key',},],})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the project whose environment variables should be updated.
Query Parameters
Whether to return decrypted values. Defaults to false (encrypted).
Body
An array of environment variables to update with id and value fields.
The unique identifier of the environment variable to update.
The new value of the environment variable.
Response
A unique identifier for the environment variable.
The object type.
The name of the environment variable.
The value of the environment variable.
Whether the value is decrypted or encrypted.
The timestamp when the environment variable was created.
The timestamp when the environment variable was last updated.