Replace environment
Replaces an environment definition when If-Match matches the current
environment revision. The path id is authoritative; the request body
omits id.
Authorizations
Raw dev token passed as Authorization: Bearer fabro_dev_... when server.auth.methods includes dev-token.
Headers
Current resource revision used for optimistic concurrency, as returned in the ETag response header.
Path Parameters
Unique environment identifier.
^[a-z0-9][a-z0-9-]{0,62}$Body
Request body for replacing a server-managed environment. The path id is authoritative.
Desired environment provider.
local, docker, daytona REST-safe environment image settings. Dockerfile sources are inline-only; local paths are rejected by the REST API.
Response
Environment replaced
Public server-managed environment definition.
^[a-z0-9][a-z0-9-]{0,62}$"docker"
Stable revision used with If-Match for optimistic concurrency.
^[0-9a-f]{64}$"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
Desired environment provider.
local, docker, daytona REST-safe environment image settings. Dockerfile sources are inline-only; local paths are rejected by the REST API.