Sets a compute environment as the default for the organization. Only one environment can be default at a time - setting a new default will automatically unset the previous one.
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"
}API key starting with sk_case_
Name of the compute environment to set as default
Environment successfully set as default
Unique environment identifier
Environment name
URL-friendly environment identifier
Environment domain
Whether this is the default environment
Current environment status
Environment creation timestamp
Last update timestamp
Was this page helpful?
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"
}