API referenceSections

Create or change the site's container and deploy it as a new release; the running version stays until the new one answers its health check

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/sites/{id}/container may answer 202

Create or change the site's container and deploy it as a new release; the running version stays until the new one answers its health check

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • image string required

    Registry and repository, without a tag

  • tag string optional
  • digest string optional

    sha256:… to pin the exact image

  • port integer optional

    Where the application listens inside the container; default 80

    • minimum 1
    • maximum 65535
  • restart string optional
    Allowed values: "" "unless-stopped" "on-failure" "no"
  • health_path string optional
  • isolation string optional
    Allowed values: "" "process" "hyperv"
  • trust string optional

    The trust profile (ADR 0190). Empty: the plan's for a new container, the stored one otherwise. Below the plan: CONTAINER_TRUST_BELOW_PLAN; hostile on a server without Hyper-V isolation: PLACEMENT_UNAVAILABLE (never a shared kernel instead)

    Allowed values: "" "trusted" "standard" "hostile"
  • user string optional
    Allowed values: "" "ContainerUser"
  • volumes array<ContainerVolume> optional
    • name string required

      A folder under the site's app\data; never a path

    • target string required

      Folder inside the container, such as C:\app\data; not C:\ itself or the system folders

  • env array<object> optional

    Omit to keep the variables. A variable without value keeps its stored one

    • name string required
    • value string | null optional
    • secret boolean optional
  • env_revision integer optional

    The variables' revision read before, with env

  • registry_user string optional
  • registry_password string | null optional

    Write-only; omit to keep the stored one

  • stack ContainerStackInput optional

    A multi-service site (ADR 0192): no services makes it one container again

    • web string optional
    • web_command array<string> optional
    • web_entrypoint array<string> optional
    • web_depends_on array<string> optional
    • web_health ContainerHealth optional
      • type string required

        tcp: the broker connects to port; cmd: the engine runs cmd inside the container; none: running is enough. The web service is always checked over HTTP too

        Allowed values: "" "tcp" "cmd" "none"
      • port integer optional
        • minimum 0
        • maximum 65535
      • cmd string optional

        One line, run inside the container by its shell (never on the server)

      • interval_s integer optional
        • minimum 0
        • maximum 3600
      • timeout_s integer optional
        • minimum 0
        • maximum 600
      • retries integer optional
        • minimum 0
        • maximum 100
      • start_period_s integer optional
        • minimum 0
        • maximum 3600
    • web_cpu_cores number optional
    • web_memory_mb integer optional
    • services array<ContainerServiceInput> optional
      • name string required

        Lowercase letters, digits, single dashes; how the other services reach it

      • image string required
      • tag string optional
      • digest string optional
      • command array<string> optional
      • entrypoint array<string> optional
      • env array<object> optional
        • name string required
        • value string | null optional
        • secret boolean optional
      • volumes array<ContainerVolume> optional

        Fields of ContainerVolume are shown above.

      • cpu_cores number optional

        0: a share of the plan's

      • memory_mb integer optional

        0: a share of the plan's

      • restart string optional
        Allowed values: "" "unless-stopped" "on-failure" "no"
      • user string optional
        Allowed values: "" "ContainerUser"
      • health ContainerHealth optional

        Fields of ContainerHealth are shown above.

      • depends_on array<string> optional
    • source string optional

      The compose file it came from

Example
{
  "image": "string",
  "tag": "string",
  "digest": "string",
  "port": 1,
  "restart": "",
  "health_path": "string",
  "isolation": "",
  "trust": "",
  "user": "",
  "volumes": [
    {
      "name": "string",
      "target": "string"
    }
  ],
  "env": [
    {
      "name": "string",
      "value": "string",
      "secret": true
    }
  ],
  "env_revision": 0,
  "registry_user": "string",
  "registry_password": "string",
  "stack": {
    "web": "string",
    "web_command": [
      "string"
    ],
    "web_entrypoint": [
      "string"
    ],
    "web_depends_on": [
      "string"
    ],
    "web_health": {
      "type": "",
      "port": 0,
      "cmd": "string",
      "interval_s": 0,
      "timeout_s": 0,
      "retries": 0,
      "start_period_s": 0
    },
    "web_cpu_cores": 0,
    "web_memory_mb": 0,
    "services": [
      {
        "name": "string",
        "image": "string",
        "tag": "string",
        "digest": "string",
        "command": [
          "string"
        ],
        "entrypoint": [
          "string"
        ],
        "env": [
          {
            "name": "string",
            "value": "string",
            "secret": true
          }
        ],
        "volumes": [
          {
            "name": "string",
            "target": "string"
          }
        ],
        "cpu_cores": 0,
        "memory_mb": 0,
        "restart": "",
        "user": "",
        "health": {
          "type": "",
          "port": 0,
          "cmd": "string",
          "interval_s": 0,
          "timeout_s": 0,
          "retries": 0,
          "start_period_s": 0
        },
        "depends_on": [
          "string"
        ]
      }
    ],
    "source": "string"
  }
}

Responses

202 Queued

Content type: application/json

A site's Windows container (ADR 0162). Experimental: not yet run on Windows.

  • configured boolean required
  • image string required
  • tag string required
  • digest string required
  • port integer required
  • restart string required
  • health_path string required
  • isolation string required
  • user string required
  • volumes array<ContainerVolume> required

    Fields of ContainerVolume are shown above.

  • desired string required

    running or stopped: what the owner asked for

  • state string required

    running, stopped, failed, or empty before the first deployment

  • working boolean required
  • last_error string required
  • registry_user string required
  • has_registry_password boolean required
  • env NodeEnv required
    • restarting boolean required

      Saving started the running release again to apply the variables

    • revision integer required

      0 until the variables are first saved

    • updated_at string (date-time) | null required
    • vars array<object> required
      • name string required
      • value string optional

        Left out for a secret: secrets are write-only

      • secret boolean required
      • has_value boolean required
  • cpu_cores number required
  • memory_mb integer required
  • max_image_mb integer required
  • active ContainerRelease | null required
    • id string required
    • image string required
    • tag string required
    • wanted string required

      The digest pinned when deployed, or empty

    • digest string required

      The digest the server ran, known once deployed

    • state string required
      Allowed values: "deploying" "active" "standby" "failed"
    • error_code string required
    • image_bytes integer (int64) required
    • created_at string (date-time) required
  • host object required
    • engine boolean required
    • engine_version string required
    • hyperv boolean required
    • engine_kind string required

      The server's container engine (ADR 0193); containerd runs trusted containers only

      Allowed values: "docker" "containerd"
    • hyperv_isolation boolean required

      The server can run Hyper-V isolated containers now (ADR 0190): false on a VM without nested virtualization, and when unknown

    • os_build integer required
    • image_tag string required

      The Microsoft base image tag that matches the server (ltsc2019, ltsc2022, ltsc2025)

    • linux string required
      Allowed values: "not_supported"
  • allowed boolean required
  • isolation_required string required
  • trust string required

    The container's trust profile (ADR 0190); before it has one, the plan's

    Allowed values: "trusted" "standard" "hostile"
  • trust_required string required

    The weakest profile the plan allows

    Allowed values: "trusted" "standard" "hostile"
  • trust_choices array<string> required

    The profiles the owner may choose, weakest first

    Allowed values: "trusted" "standard" "hostile"
  • registries array<string> required
  • require_digest boolean required
  • updated_at string (date-time) | null required
  • stack ContainerStack | null optional

    Multi-service manifest (ADR 0192); null for one container

    • web string required
    • web_command array<string> required
    • web_entrypoint array<string> required
    • web_depends_on array<string> required
    • web_health ContainerHealth required

      Fields of ContainerHealth are shown above.

    • web_cpu_cores number required
    • web_memory_mb integer required
    • services array<ContainerServiceView> required
      • name string required
      • image string required
      • tag string required
      • digest string required
      • running_digest string required

        The digest the active release runs

      • command array<string> required
      • entrypoint array<string> required
      • env array<object> required
        • name string required
        • value string optional

          Left out for a secret

        • secret boolean required
        • has_value boolean required
      • volumes array<ContainerVolume> required

        Fields of ContainerVolume are shown above.

      • cpu_cores number required
      • memory_mb integer required
      • shared_limits boolean required
      • restart string required
      • user string required
      • health ContainerHealth required

        Fields of ContainerHealth are shown above.

      • depends_on array<string> required
    • order array<string> required

      Start order, the web service last

    • source string required
Example
{
  "configured": true,
  "image": "string",
  "tag": "string",
  "digest": "string",
  "port": 0,
  "restart": "string",
  "health_path": "string",
  "isolation": "string",
  "user": "string",
  "volumes": [
    {
      "name": "string",
      "target": "string"
    }
  ],
  "desired": "string",
  "state": "string",
  "working": true,
  "last_error": "string",
  "registry_user": "string",
  "has_registry_password": true,
  "env": {
    "restarting": true,
    "revision": 0,
    "updated_at": "2026-01-01T00:00:00Z",
    "vars": [
      {
        "name": "string",
        "value": "string",
        "secret": true,
        "has_value": true
      }
    ]
  },
  "cpu_cores": 0,
  "memory_mb": 0,
  "max_image_mb": 0,
  "active": {
    "id": "string",
    "image": "string",
    "tag": "string",
    "wanted": "string",
    "digest": "string",
    "state": "deploying",
    "error_code": "string",
    "image_bytes": 0,
    "created_at": "2026-01-01T00:00:00Z"
  },
  "host": {
    "engine": true,
    "engine_version": "string",
    "hyperv": true,
    "engine_kind": "docker",
    "hyperv_isolation": true,
    "os_build": 0,
    "image_tag": "string",
    "linux": "not_supported"
  },
  "allowed": true,
  "isolation_required": "string",
  "trust": "trusted",
  "trust_required": "trusted",
  "trust_choices": [
    "trusted"
  ],
  "registries": [
    "string"
  ],
  "require_digest": true,
  "updated_at": "2026-01-01T00:00:00Z",
  "stack": {
    "web": "string",
    "web_command": [
      "string"
    ],
    "web_entrypoint": [
      "string"
    ],
    "web_depends_on": [
      "string"
    ],
    "web_health": {
      "type": "",
      "port": 0,
      "cmd": "string",
      "interval_s": 0,
      "timeout_s": 0,
      "retries": 0,
      "start_period_s": 0
    },
    "web_cpu_cores": 0,
    "web_memory_mb": 0,
    "services": [
      {
        "name": "string",
        "image": "string",
        "tag": "string",
        "digest": "string",
        "running_digest": "string",
        "command": [
          "string"
        ],
        "entrypoint": [
          "string"
        ],
        "env": [
          {
            "name": null,
            "value": null,
            "secret": null,
            "has_value": null
          }
        ],
        "volumes": [
          {
            "name": null,
            "target": null
          }
        ],
        "cpu_cores": 0,
        "memory_mb": 0,
        "shared_limits": true,
        "restart": "string",
        "user": "string",
        "health": {
          "type": "",
          "port": 0,
          "cmd": "string",
          "interval_s": 0,
          "timeout_s": 0,
          "retries": 0,
          "start_period_s": 0
        },
        "depends_on": [
          "string"
        ]
      }
    ],
    "order": [
      "string"
    ],
    "source": "string"
  }
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required