Avisi cloud logo
Environments

Create an environments in an organisation.

POST
/api/v1/orgs/{organisationSlug}/environments

Request Body

application/jsonRequired
nameRequiredstring
Minimum length: 1Maximum length: 25Pattern: "^[a-zA-Z0-9\\-\\s&]*$"
purposestring
Minimum length: 0Maximum length: 255
typestring
Value in: "production" | "staging" | "development" | "demo" | "other"
descriptionstring
Minimum length: 0Maximum length: 500

Path Parameters

organisationSlugRequiredstring
Pattern: "^[a-z0-9-]+$"

Response Body

Request was successfully processed. The response body contains the requested data.

TypeScript Definitions

Use the response body type in TypeScript.

idinteger
Format: "int64"
identitystring
Format: "uuid"
namestring
purposestring
typestring
descriptionstring
createdAtstring
Format: "date-time"
modifiedAtstring
Format: "date-time"
deletedAtstring
Format: "date-time"
totalClustersinteger
Format: "int64"
totalCpuinteger
Format: "int64"
totalMemoryinteger
Format: "int64"
slugobject
organisationSlugobject
curl -X POST "https://api.avisi.cloud/api/v1/orgs/string/environments" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "purpose": "string",
    "type": "production",
    "description": "string"
  }'
{
  "id": 0,
  "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
  "name": "string",
  "purpose": "string",
  "type": "string",
  "description": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "modifiedAt": "2019-08-24T14:15:22Z",
  "deletedAt": "2019-08-24T14:15:22Z",
  "totalClusters": 0,
  "totalCpu": 0,
  "totalMemory": 0,
  "slug": {
    "slugValue": "string"
  },
  "organisationSlug": {
    "slugValue": "string"
  }
}