revise_sandbox_template
const url = 'https://app.everruns.com/api/v1/sandbox-templates/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"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"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Omit to preserve; send null to clear.
Example
Larger recoverable workspace for repository buildsReplacement display name; omit to preserve the current value.
Example
Coding - Daytona (large)Complete specification stored as the next immutable revision.
object
Reproducible commands run when physical compute is initialized.
object
Ordered commands replayed when creating or recovering physical compute.
Requested isolation policy; resolution supplies an honest target default.
object
Whether the runtime may widen containment after Session creation.
Filesystem mutation boundary for command execution.
object
Absolute roots the runtime may mutate; empty means provider default.
Isolation mechanism the provider must supply.
Idle lifecycle policy controlled by Everruns.
object
Action Everruns requests after the idle interval.
Inactivity interval before applying idle_action.
Example
300Provider-neutral target plus its concrete adapter binding.
object
Credential/transport binding for a registered machine target.
Example
conn_01933b5a000070008000000000000001Provider-neutral target class.
Provider-owned, non-secret configuration. Credentials are references, never values in this object.
object
Concrete adapter for target kinds with more than one implementation.
Example
daytonaImmutable 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.
Responses
Section titled “ Responses ”Organization-scoped reusable Sandbox Template.
object
Creation timestamp.
Latest immutable revision used for new references.
object
Revision creation timestamp.
Stable public revision identifier pinned into Agent and Session snapshots.
Monotonically increasing revision number within the Sandbox Template.
Parent reusable Sandbox Template identifier.
Complete immutable authored specification.
object
Reproducible commands run when physical compute is initialized.
object
Ordered commands replayed when creating or recovering physical compute.
Requested isolation policy; resolution supplies an honest target default.
object
Whether the runtime may widen containment after Session creation.
Filesystem mutation boundary for command execution.
object
Absolute roots the runtime may mutate; empty means provider default.
Isolation mechanism the provider must supply.
Idle lifecycle policy controlled by Everruns.
object
Action Everruns requests after the idle interval.
Inactivity interval before applying idle_action.
Provider-neutral target plus its concrete adapter binding.
object
Credential/transport binding for a registered machine target.
Provider-neutral target class.
Provider-owned, non-secret configuration. Credentials are references, never values in this object.
object
Concrete adapter for target kinds with more than one implementation.
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.
Optional explanation of the Sandbox Template’s intended workload.
Human-readable name shown in management surfaces.
Stable public Sandbox Template identifier.
Whether the definition is owned and sealed by the platform.
Addressable name used in configuration.
Lifecycle state such as active or archived.
Timestamp of the most recent definition or revision change.
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"}