Skip to main content
POST
/
compute
/
v1
/
environments
/
{name}
/
default
Set default environment
curl --request POST \
  --url https://api.case.dev/compute/v1/environments/{name}/default \
  --header 'Authorization: Bearer <token>'
{
  "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"
}

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