Environments

Update an environment

Replace an API-managed environment definition.

MethodPathRequired permissions
PUT/v1/environments/{environment_id}
write:environments
Token access
API key
Supported.
CLI user token
Supported.
Sandbox token
Unavailable. Not supported by sandbox tokens, even with permissions.ellipsis enabled.

Higher permission levels include lower levels: read < write < delete.

Git-managed definitions must be edited in their repository.

Path parameters

environment_idstringrequired
curl -X PUT "https://api.ellipsis.dev/v1/environments/{environment_id}" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "environment": {
    "ellipsis": {
      "kind": "environment",
      "name": "api-environment",
      "metadata": {
        "labels": [],
        "annotations": {}
      }
    },
    "repositories": [
      {
        "name": "api-repo"
      }
    ],
    "compute": {},
    "hooks": {},
    "mcp_servers": [],
    "variables": []
  }
}'

Request

Example request body
{
}

Body parameters

environmentEnvironmentDocument-Inputrequired

The environment's new definition. Replaces the previous one wholesale , this is not a partial update.

Response

Example response, 200
{
}

On this page

No Headings
Schedule a demo