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
/api/v1/tenants/{tid}/sites/{id}/container may answer 202Create 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
- no other properties
imagestring requiredRegistry and repository, without a tag
tagstring optionaldigeststring optionalsha256:… to pin the exact image
portinteger optionalWhere the application listens inside the container; default 80
- minimum 1
- maximum 65535
restartstring optionalAllowed values:"""unless-stopped""on-failure""no"health_pathstring optionalisolationstring optionalAllowed values:"""process""hyperv"truststring optionalThe 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"userstring optionalAllowed values:"""ContainerUser"namestring requiredA folder under the site's app\data; never a path
targetstring requiredFolder inside the container, such as C:\app\data; not C:\ itself or the system folders
envarray<object> optionalOmit to keep the variables. A variable without value keeps its stored one
namestring requiredvaluestring | null optionalsecretboolean optional
env_revisioninteger optionalThe variables' revision read before, with env
registry_userstring optionalregistry_passwordstring | null optionalWrite-only; omit to keep the stored one
A multi-service site (ADR 0192): no services makes it one container again
webstring optionalweb_commandarray<string> optionalweb_entrypointarray<string> optionalweb_depends_onarray<string> optionaltypestring requiredtcp: 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"portinteger optional- minimum 0
- maximum 65535
cmdstring optionalOne line, run inside the container by its shell (never on the server)
interval_sinteger optional- minimum 0
- maximum 3600
timeout_sinteger optional- minimum 0
- maximum 600
retriesinteger optional- minimum 0
- maximum 100
start_period_sinteger optional- minimum 0
- maximum 3600
web_cpu_coresnumber optionalweb_memory_mbinteger optionalnamestring requiredLowercase letters, digits, single dashes; how the other services reach it
imagestring requiredtagstring optionaldigeststring optionalcommandarray<string> optionalentrypointarray<string> optionalenvarray<object> optionalnamestring requiredvaluestring | null optionalsecretboolean optional
Fields of ContainerVolume are shown above.
cpu_coresnumber optional0: a share of the plan's
memory_mbinteger optional0: a share of the plan's
restartstring optionalAllowed values:"""unless-stopped""on-failure""no"userstring optionalAllowed values:"""ContainerUser"Fields of ContainerHealth are shown above.
depends_onarray<string> optional
sourcestring optionalThe 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.
configuredboolean requiredimagestring requiredtagstring requireddigeststring requiredportinteger requiredrestartstring requiredhealth_pathstring requiredisolationstring requireduserstring requiredFields of ContainerVolume are shown above.
desiredstring requiredrunning or stopped: what the owner asked for
statestring requiredrunning, stopped, failed, or empty before the first deployment
workingboolean requiredlast_errorstring requiredregistry_userstring requiredhas_registry_passwordboolean requiredrestartingboolean requiredSaving started the running release again to apply the variables
revisioninteger required0 until the variables are first saved
updated_atstring (date-time) | null requiredvarsarray<object> requirednamestring requiredvaluestring optionalLeft out for a secret: secrets are write-only
secretboolean requiredhas_valueboolean required
cpu_coresnumber requiredmemory_mbinteger requiredmax_image_mbinteger requiredidstring requiredimagestring requiredtagstring requiredwantedstring requiredThe digest pinned when deployed, or empty
digeststring requiredThe digest the server ran, known once deployed
statestring requiredAllowed values:"deploying""active""standby""failed"error_codestring requiredimage_bytesinteger (int64) requiredcreated_atstring (date-time) required
hostobject requiredengineboolean requiredengine_versionstring requiredhypervboolean requiredengine_kindstring requiredThe server's container engine (ADR 0193); containerd runs trusted containers only
Allowed values:"docker""containerd"hyperv_isolationboolean requiredThe server can run Hyper-V isolated containers now (ADR 0190): false on a VM without nested virtualization, and when unknown
os_buildinteger requiredimage_tagstring requiredThe Microsoft base image tag that matches the server (ltsc2019, ltsc2022, ltsc2025)
linuxstring requiredAllowed values:"not_supported"
allowedboolean requiredisolation_requiredstring requiredtruststring requiredThe container's trust profile (ADR 0190); before it has one, the plan's
Allowed values:"trusted""standard""hostile"trust_requiredstring requiredThe weakest profile the plan allows
Allowed values:"trusted""standard""hostile"trust_choicesarray<string> requiredThe profiles the owner may choose, weakest first
Allowed values:"trusted""standard""hostile"registriesarray<string> requiredrequire_digestboolean requiredupdated_atstring (date-time) | null requiredMulti-service manifest (ADR 0192); null for one container
webstring requiredweb_commandarray<string> requiredweb_entrypointarray<string> requiredweb_depends_onarray<string> requiredFields of ContainerHealth are shown above.
web_cpu_coresnumber requiredweb_memory_mbinteger requirednamestring requiredimagestring requiredtagstring requireddigeststring requiredrunning_digeststring requiredThe digest the active release runs
commandarray<string> requiredentrypointarray<string> requiredenvarray<object> requirednamestring requiredvaluestring optionalLeft out for a secret
secretboolean requiredhas_valueboolean required
Fields of ContainerVolume are shown above.
cpu_coresnumber requiredmemory_mbinteger requiredshared_limitsboolean requiredrestartstring requireduserstring requiredFields of ContainerHealth are shown above.
depends_onarray<string> required
orderarray<string> requiredStart order, the web service last
sourcestring 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required