Skip to main content
POST
/
projects
/
{slug}
/
environments
/
{environmentSlug}
/
variables
/
bulk
Bulk create variables
curl --request POST \
  --url https://api.envless.cloud/projects/{slug}/environments/{environmentSlug}/variables/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "variables": [
    {
      "name": "<string>",
      "value": "<string>",
      "type": "string",
      "isSecret": true
    }
  ]
}
'
{
  "success": true,
  "code": 201,
  "message": "Variables created.",
  "data": {
    "created": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ],
    "skipped": [
      {
        "name": "<string>",
        "reason": "already exists"
      }
    ],
    "count": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal access key from https://app.envless.cloud/keys. Pass as Authorization: Bearer ev_live_....

Path Parameters

slug
string
required

The project's slug.

environmentSlug
string
required

The environment's slug.

Body

application/json
variables
object[]
required
Required array length: 1 - 200 elements

Response

Variables created

success
boolean
Example:

true

code
integer
Example:

201

message
string
Example:

"Variables created."

data
object