Set environment variables
Changed onReplaces all of an app's environment variables with the list you send. If a key appears more than once, the last value wins. If the app has a successful release, it's redeployed with the new variables. Team permission: operate or manage.
Errors from this endpoint use the body {"message": "..."} instead of the standard error body.
Request
- Base URLhttps://api.liara.ir
- URLhttps://api.liara.ir/v1/projects/update-envs
- AuthHTTP bearer
Query parameters
24-character hexadecimal ID.
Run the request in the context of a team you belong to, instead of your personal account.
Request body
Response
The variables were saved. The app has no successful release, so nothing was redeployed. The response body is empty.
Changes
- breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
//became required - breaking
the request property
//became required - breaking
removed the media type
application/jsonfor the response with the status - info
api tag
Configurationadded - info
api tag
Settingsremoved - info
added the new optional
queryrequest parameterteamID - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the success response with the status
- breaking
- info
added the media type
application/jsonfor the response with the status
- info