v20

OpenAPI 3.1.0raw.githubusercontent.com2026-08-035471202.8 KB
Environments

Create an environment

Create a project environment from a host plus, optionally, a standalone server group, a pinned skill selection, and pinned plugin versions. The name must be unique among the project's live environments. Requires project admin.

post/projects/{projectId}/environments

Path parameters

projectIdstring required

ID of the hosted project that contains the server.

Request body

namestring required
descriptionstring
hostIdstring required
serverAttachmentIdstring
pluginVersionIdsstring[]

Pinned plugin VERSION IDs. Narrow by design: the plugin must be installed and enabled, the version must be ready, at most one version per plugin may be pinned, and none of its skills may carry supporting files. Not a general-purpose plugin list.

sandboxImageIdstring

Optional sandbox-image pin. Must be a project-shared image; personal drafts are rejected — promote them first.

Response

The created environment.

idstring required
projectIdstring required
namestring required

Unique among the project's live (non-archived) environments.

descriptionstring
hostIdstring required

The host this environment runs against.

serverAttachmentIdstring

Present only when the environment pins a standalone server group; otherwise the host config's own servers apply.

pluginVersionIdsstring[]

Pinned plugin VERSION IDs. Narrow by design: the plugin must be installed and enabled, the version must be ready, at most one version per plugin may be pinned, and none of its skills may carry supporting files. Not a general-purpose plugin list.

sandboxImageIdstring

Sandbox-image pin: a project-shared image (see the images endpoints) that eval runs in this environment boot a fresh sandbox from. Absent when unpinned.

revisioninteger required

Optimistic-concurrency counter. Pass this back as expectedRevision on the next write; if it no longer matches, the write is rejected with 409 instead of overwriting a concurrent edit.

archivedboolean required

Archived environments cannot be edited or launched until restored.

archivedAtnumber

Unix epoch milliseconds. Present only when archived.

createdAtnumber required

Unix epoch milliseconds.

updatedAtnumber required

Unix epoch milliseconds.