Set environment variables

Add or update environment variables, including Gradle private registry variables such as ORG_GRADLE_PROJECT_*. An environment variable that already exists is overwritten. Keys omitted from the request are left unchanged. This endpoint does not delete environment variables.

post/repositories/code/environment-variables

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/repositories/code/environment-variables
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: repositories:write

Request body

Example request

{
  "env_vars": [
    {
      "key": "ORG_GRADLE_PROJECT_mavenRepoPassword",
      "value": "secret"
    }
  ]
}

Response

The environment variables have been stored.

successinteger

The integer 1 indicating success

Example response

{
  "success": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.