Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.knoxcall.com/llms.txt

Use this file to discover all available pages before exploring further.

Update Environment

PATCH /v1/environments/:id
Updates one or more fields on an existing environment.

Path Parameters

ParameterTypeDescription
iduuidThe environment ID

Request Body

All fields are optional. Only provided fields will be updated.
FieldTypeDescription
namestringMachine-friendly name (must match ^[a-z0-9_-]+$)
display_namestringHuman-friendly display name
descriptionstringDescription
colorstringHex color code
is_defaultbooleanSet as default environment

Response

Returns the updated environment object.

Errors

StatusTypeDescription
400validation_errorInvalid name format
404not_foundEnvironment not found
409conflictAn environment with this name already exists