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/:keyOnly 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_idstringrequiredThe app's ID.
keystringrequiredThe variable's name, as the app lists it (any case).
Body
valuestringrequiredThe value, at most 8 KiB.
Response
(object)EnvVaroptionalThe variable object, with its value.
Errors
| Status | Reason |
|---|---|
400 | A 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. |
404 | No app with this ID exists in the key's workspace. |
409 | The app is expired, suspended or deleting. |