Skip to main content
POST
/
compute
/
v1
/
environments
/
{name}
/
default
curl -X POST "https://api.case.dev/compute/v1/environments/%3Cstring%3E/default" \ -H "Authorization: Bearer $CASEDEV_API_KEY"
{
  "id": "env_123abc",
  "name": "prod-legal-docs",
  "slug": "prod-legal-docs",
  "domain": "prod-legal-docs.case.dev",
  "isDefault": true,
  "status": "active",
  "createdAt": "2024-01-15T10:00:00Z",
  "updatedAt": "2024-01-15T14:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

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

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

name
string
required

Name of the compute environment to set as default

Response

Environment successfully set as default

id
string

Unique environment identifier

name
string

Environment name

slug
string

URL-friendly environment identifier

domain
string

Environment domain

isDefault
boolean

Whether this is the default environment

status
string

Current environment status

createdAt
string<date-time>

Environment creation timestamp

updatedAt
string<date-time>

Last update timestamp