Skip to main content
PUT
Set an environment variable
Stores a value, encrypted. Values are write-only. Changing a production value of a hosted app redeploys it. Authenticate with a member API key of the app’s owner or of a workspace owner or admin, a deploy token for this app, or an agent builder token for an app the member owns. Any other caller gets ReintersectAppNotFoundError. Preview-only deploy tokens and agent builder tokens can only set preview values.

Path

Body

Response

{ key, target, secret, updatedAt, runtimeWarning }. runtimeWarning is "redeploy-failed" when the value was saved but the hosted app couldn’t be redeployed; deploy again.

Errors