Skip to content
Everruns Cloud is open in early access. Run agents without operating the platform.

revise_sandbox_template

PUT
/v1/sandbox-templates/{sandbox_template_id}
curl --request PUT \
--url https://app.everruns.com/api/v1/sandbox-templates/example \
--header 'Content-Type: application/json' \
--data '{ "description": "Larger recoverable workspace for repository builds", "display_name": "Coding - Daytona (large)", "spec": { "bootstrap": { "commands": [ "example" ] }, "containment": { "escalation": "never", "filesystem": { "writable_roots": [ "example" ] }, "level": "none", "network": { "mode": "deny" } }, "durability": "checkpointed", "lifecycle": { "idle_action": "checkpoint_and_stop", "idle_after_seconds": 300 }, "target": { "connection_id": "conn_01933b5a000070008000000000000001", "kind": "host", "options": {}, "provider": "daytona" }, "template_revision_id": "example" } }'

Create the next immutable revision of a reusable Sandbox Template.

sandbox_template_id
required
string
Media typeapplication/json
object
description

Omit to preserve; send null to clear.

string | null
Example
Larger recoverable workspace for repository builds
display_name

Replacement display name; omit to preserve the current value.

string | null
Example
Coding - Daytona (large)
spec
required

Complete specification stored as the next immutable revision.

object
bootstrap

Reproducible commands run when physical compute is initialized.

object
commands

Ordered commands replayed when creating or recovering physical compute.

Array<string>
containment
One of:

Requested isolation policy; resolution supplies an honest target default.

object
escalation

Whether the runtime may widen containment after Session creation.

string
Allowed values: never approval auto
filesystem

Filesystem mutation boundary for command execution.

object
writable_roots

Absolute roots the runtime may mutate; empty means provider default.

Array<string>
level
required

Isolation mechanism the provider must supply.

string
Allowed values: none native isolated
network
One of:
object
mode
required
string
Allowed values: deny
durability
One of:

Requested recovery guarantee; resolution supplies a target default.

string
Allowed values: checkpointed provider_snapshot none
lifecycle

Idle lifecycle policy controlled by Everruns.

object
idle_action

Action Everruns requests after the idle interval.

string
Allowed values: checkpoint_and_stop stop keep_running
idle_after_seconds

Inactivity interval before applying idle_action.

integer format: int64
Example
300
target
required

Provider-neutral target plus its concrete adapter binding.

object
connection_id

Credential/transport binding for a registered machine target.

string | null
Example
conn_01933b5a000070008000000000000001
kind
required

Provider-neutral target class.

string
Allowed values: host machine vfs container managed
options

Provider-owned, non-secret configuration. Credentials are references, never values in this object.

object
provider

Concrete adapter for target kinds with more than one implementation.

string | null
Example
daytona
template_revision_id

Immutable Sandbox Template revision this specification was copied from. The specification remains complete so Agent versions are portable and later template revisions cannot change an existing version.

string | null
Media typeapplication/json

Organization-scoped reusable Sandbox Template.

object
created_at
required

Creation timestamp.

string format: date-time
current_revision
required

Latest immutable revision used for new references.

object
created_at
required

Revision creation timestamp.

string format: date-time
id
required

Stable public revision identifier pinned into Agent and Session snapshots.

string
revision
required

Monotonically increasing revision number within the Sandbox Template.

integer format: int32
sandbox_template_id
required

Parent reusable Sandbox Template identifier.

string
spec
required

Complete immutable authored specification.

object
bootstrap

Reproducible commands run when physical compute is initialized.

object
commands

Ordered commands replayed when creating or recovering physical compute.

Array<string>
containment
One of:

Requested isolation policy; resolution supplies an honest target default.

object
escalation

Whether the runtime may widen containment after Session creation.

string
Allowed values: never approval auto
filesystem

Filesystem mutation boundary for command execution.

object
writable_roots

Absolute roots the runtime may mutate; empty means provider default.

Array<string>
level
required

Isolation mechanism the provider must supply.

string
Allowed values: none native isolated
network
One of:
object
mode
required
string
Allowed values: deny
durability
One of:

Requested recovery guarantee; resolution supplies a target default.

string
Allowed values: checkpointed provider_snapshot none
lifecycle

Idle lifecycle policy controlled by Everruns.

object
idle_action

Action Everruns requests after the idle interval.

string
Allowed values: checkpoint_and_stop stop keep_running
idle_after_seconds

Inactivity interval before applying idle_action.

integer format: int64
target
required

Provider-neutral target plus its concrete adapter binding.

object
connection_id

Credential/transport binding for a registered machine target.

string | null
kind
required

Provider-neutral target class.

string
Allowed values: host machine vfs container managed
options

Provider-owned, non-secret configuration. Credentials are references, never values in this object.

object
provider

Concrete adapter for target kinds with more than one implementation.

string | null
template_revision_id

Immutable Sandbox Template revision this specification was copied from. The specification remains complete so Agent versions are portable and later template revisions cannot change an existing version.

string | null
description

Optional explanation of the Sandbox Template’s intended workload.

string | null
display_name
required

Human-readable name shown in management surfaces.

string
id
required

Stable public Sandbox Template identifier.

string
is_managed
required

Whether the definition is owned and sealed by the platform.

boolean
name
required

Addressable name used in configuration.

string
status
required

Lifecycle state such as active or archived.

string
updated_at
required

Timestamp of the most recent definition or revision change.

string format: date-time
Example
{
"current_revision": {
"revision": 3,
"spec": {
"containment": {
"escalation": "never",
"level": "none",
"network": {
"mode": "deny"
}
},
"durability": "checkpointed",
"lifecycle": {
"idle_action": "checkpoint_and_stop",
"idle_after_seconds": 300
},
"target": {
"connection_id": "conn_01933b5a000070008000000000000001",
"kind": "host",
"provider": "daytona"
}
}
},
"description": "Recoverable coding workspace managed by Daytona",
"display_name": "Coding - Daytona",
"name": "coding-daytona",
"status": "active"
}