Environments


GET /{o}/{p}/environments

List environments

Auth: Bearer token required · Permission: catalog:read

Path parameters

NameTypeDescription
ostring
pstring

Responses

StatusDescriptionSchema
200EnvironmentsEnvironmentList

POST /{o}/{p}/environments

Create an environment

Auth: Bearer token required · Permission: catalog:write

Path parameters

NameTypeDescription
ostring
pstring

Request body (application/json)

FieldTypeDescription
namestring(required)

Responses

StatusDescriptionSchema
201Created environmentEnvironment
409Environment already existsError

DELETE /{o}/{p}/environments/{envName}

Delete an environment

Delete a non-default, empty environment. Refuses while the env still has entities, relationships, secrets, or action runs.

Auth: Bearer token required · Permission: catalog:write

Path parameters

NameTypeDescription
ostring
pstring
envNamestring

Responses

StatusDescriptionSchema
200Deletion resultDeleted
404Environment not foundError
409Default env or env still has dataError

Schemas

Deleted

FieldTypeDescription
deletedtrue(required)
namestring(required)

Environment

FieldTypeDescription
idstring(uuid)(required)
namestring(required)
isDefaultboolean(required)
createdAtstring(required)

EnvironmentList

Type: Environment[]

Error

FieldTypeDescription
errorstring(required)
codestring