revise_environment
const url = 'https://app.everruns.com/api/v1/environments/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"description":"Larger recoverable workspace for repository builds","display_name":"Coding - Daytona (large)","profile":{"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},"source_revision_id":"example","target":{"connection_id":"conn_01933b5a000070008000000000000001","kind":"host","options":{},"provider":"daytona"}}}'};
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/environments/example \ --header 'Content-Type: application/json' \ --data '{ "description": "Larger recoverable workspace for repository builds", "display_name": "Coding - Daytona (large)", "profile": { "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 }, "source_revision_id": "example", "target": { "connection_id": "conn_01933b5a000070008000000000000001", "kind": "host", "options": {}, "provider": "daytona" } } }'Create the next immutable revision of a reusable Environment.
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 profile 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
300Immutable reusable Environment revision this profile was copied from. The profile remains a complete snapshot so Agent versions are portable and later Environment revisions cannot change an existing version.
Provider-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
daytonaResponses
Section titled “ Responses ”Organization-scoped reusable execution Environment.
object
Creation timestamp.
Latest immutable revision used for new references.
object
Revision creation timestamp.
Parent reusable Environment identifier.
Stable public revision identifier pinned into Agent and Session snapshots.
Complete immutable authored profile.
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.
Immutable reusable Environment revision this profile was copied from. The profile remains a complete snapshot so Agent versions are portable and later Environment revisions cannot change an existing version.
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.
Monotonically increasing revision number within the Environment.
Optional explanation of the Environment’s intended workload.
Human-readable name shown in management surfaces.
Stable public Environment 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": { "profile": { "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" } }, "revision": 3 }, "description": "Recoverable coding workspace managed by Daytona", "display_name": "Coding - Daytona", "name": "coding-daytona", "status": "active"}