Skip to main content
POST
Create an environment

Authorizations

Authorization
string
header
required

A CLI token or an organization API key.

Body

application/json
template
string
required
Example:

"linux-build"

sandbox
string

The sandbox to wire it to; needed for shares and for services on localhost.

shares
object

A template in share → a folder on the sandbox, relative to its folder.

Example:
labels
object
idle
string
Example:

"30m"

hard
string

At most 24h.

Example:

"6h"

project
string

Whose key seals its files; default.

Example:

"github.com/acme/app"

snapshot
string

Save its synced files under this key when it ends.

restore
string[]

Snapshot keys to start from, in order: exact match, then the newest prefix match. Defaults to snapshot.

include
string[]

Paths or globs to send even if .gitignore or the defaults leave them out.

noIgnore
boolean

Don't apply .gitignore files or the default ignores.

files
object

Extra files: destination in the share → source on the sandbox.

Response

Queued

environment
object
sandboxConfig
object

The sandbox's new envd configuration, when one is wired.