API referenceEnvironments
POST /environments
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/environments" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "$schema": "https://example.com/schemas/EnvironmentDTO.json", "color": "string", "createdAt": "string", "environmentId": "string", "expiresAt": "string", "isDefault": true, "isEphemeral": true, "isProduction": true, "name": "string", "orgId": "string", "slug": "string", "updatedAt": "string"}color?string
isDefault?boolean
isProduction?boolean
name*string
Environment display name
Length
1 <= length <= 120slug?string
URL-safe slug; derived from name when omitted