Skip to main content
PUT
/
api
/
v2
/
environments
/
{org}
Put environments
curl --request PUT \
  --url https://app.kosli.com/api/v2/environments/{org} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "type": "<string>",
  "include_scaling": true,
  "policies": [
    "<string>"
  ]
}
'

Path Parameters

org
string
required
The Kosli organization.

Body Parameters

name
string
required
The name of the environment to create or update.
description
string
required
A description for the environment.
type
string
required
The type of the environment. Valid values are K8S, S3, logical.
include_scaling
boolean
default:"false"
Whether to include scaling information in the environment snapshot.
policies
string[]
default:""
A list of policy names to associate with the environment.
Last modified on March 11, 2026