Configuration

Set environment variables

Changed on

Replaces 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.

post/v1/projects/update-envs

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v1/projects/update-envs
  • Auth
    HTTP bearer

Query parameters

teamIDstring

24-character hexadecimal ID.

Run the request in the context of a team you belong to, instead of your personal account.

Request body

projectstring required

The app's name.

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/json for the response with the status

    • info

      api tag Configuration added

    • info

      api tag Settings removed

    • info

      added the new optional query request parameter teamID

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for 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

    • info

      added the media type application/json for the response with the status