Skip to main content
POST
/
api
/
v1
/
projects
/
{slug}
/
environments
curl -X POST http://localhost:8000/api/v1/projects/saas-platform/environments \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "testing",
    "environment": "custom",
    "git_branch": "testing",
    "env_vars": {"NODE_ENV": "test"},
    "cli_profiles": [
      {"tool": "gh", "account": "test-bot", "status": "connected"}
    ]
  }'
slug
string
required
Slug del proyecto.
name
string
required
Nombre del entorno (ej: development, staging, production).
environment
string
default:"development"
Tipo: development, staging, production, custom.
git_branch
string
Rama de Git asociada.
env_vars
object
Variables de entorno (key-value).
cli_profiles
array
Lista de perfiles CLI.
curl -X POST http://localhost:8000/api/v1/projects/saas-platform/environments \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "testing",
    "environment": "custom",
    "git_branch": "testing",
    "env_vars": {"NODE_ENV": "test"},
    "cli_profiles": [
      {"tool": "gh", "account": "test-bot", "status": "connected"}
    ]
  }'