Set (upsert) one environment variable on the app
PUT /api/workspaces/{workspaceId}/apps/{id}/env
PUT
/api/workspaces/{workspaceId}/apps/{id}/env
Values are encrypted at rest. secret: true keeps the value out of the publish build and forbids the VITE_ prefix (Vite inlines VITE_* into the public bundle). A running dev server picks the change up on its next restart.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
string
id
required
string
Request Body required
Section titled “Request Body required ”object
key
required
string
value
required
string
secret
boolean
Responses
Section titled “ Responses ”Successful response
object
success
Whether the request succeeded.
boolean
data
Endpoint-specific response payload.
message
string
Example
Operation completed error
string
Example
Error messageInvalid request
object
success
boolean
error
string
Example
Error messageInternal server error
object
success
boolean
error
string
Example
Error message