Set Variable

Set one of an app's environment variables.

Set one of the app's variables. The app gets your value at its next start. Needs a key whose creator may manage apps in the workspace.

PUT /v1/launchpad/apps/:app_id/env/:key

Only the variables the app lists can be set: a name it doesn't list returns 400. An empty value is allowed, and the app then gets an empty value.

Path parameters

app_idstringrequired

The app's ID.

keystringrequired

The variable's name, as the app lists it (any case).

Body

valuestringrequired

The value, at most 8 KiB.

Response

(object)EnvVaroptional

The variable object, with its value.

Errors

StatusReason
400A name the app doesn't list, a variable managed by Launchpad, a read-only connection variable (while the app uses the Aivene AI connection), an invalid value, or the app's limits reached.
404No app with this ID exists in the key's workspace.
409The app is expired, suspended or deleting.