ApiEnvironments
Create a new environment
Creates a new environment with the given slug and optional display name. The slug must be unique within the tenant and follow the identifier format (lowercase letters, numbers, and underscores, starting with a letter).
Authorization
Bearer AuthorizationBearer <token>
JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
tenant*string
The tenant identifier
The environment to create
slug*string
URL-safe identifier for the environment. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
Length
1 <= length <= 64displayName?string|null
Optional human-readable name for the environment (e.g., "Acme Corp Production").
[key: string]?never
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/environments" \ -H "Content-Type: application/json" \ -d '{ "slug": "string" }'{
"id": "00000000-0000-0000-0000-000000000000",
"slug": "string",
"displayName": "string",
"createdAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Empty
Empty
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}