envvars

Create environment variable

Changed on

Create a new environment variable for a specific project and environment.

post/api/v1/projects/{projectRef}/envvars/{env}

Request

Request body

namestring required
valuestring required

Example request

{
  "name": "SLACK_API_KEY",
  "value": "slack_123456"
}

Response

Environment variable created successfully

successboolean required

Changes

    • info

      the endpoint scheme security secretKey was added to the API

    • info

      the endpoint scheme security apiKey was removed from the API