Skip to main content
POST
Update a container

Authorizations

Authorization
string
header
required

An admin API key. Personal admin keys reach the API key, billing and Account endpoints for the creator's personal account; the other endpoints need an organization admin key. Security requirement entries list the permission a scoped key needs for the operation.

Scopes

containers.update

Path Parameters

id
string<uuid>
required

Container ID.

Body

application/json

All fields are optional; omitted fields keep the container's current values.

tag
string

Release tag to deploy. Omitted keeps the current tag.

variables
object | null

Replaces the saved variables, not env values measured in tinfoil-config.yml.

secrets
string[] | null

Names of Tinfoil-managed secrets to attach. Omitted or null keeps the saved selection; a list replaces it, and secrets the config declares that exist in repository or organization scope are added. Non-debug private keyserver delivery requires an empty list, and private secret names supplied as variables are rejected.

ssh_keys
string[] | null

Names of SSH keys to attach; replaces the saved list.

debug
boolean | null
mark_latest_release
boolean | null

Mark a changed tag as the GitHub latest release. Omitted means true. For a held update, the tag is marked after promotion. Applies only to non-debug containers whose repository is active and connected through the GitHub App.

custom_domain
string | null

Verified custom domain to serve the container on; an empty string reverts to the generated domain.

host_name
string | null

Move a running container to this host without downtime. Must be the only change in the request. Only containers that update blue/green, do not use the HTTP certificate challenge, and are on a host that supports handover can move; otherwise the request returns 409 with code MOVE_UNAVAILABLE, and the container must be stopped and deployed with host_name.

hold
boolean | null

Hold the new version for review instead of switching traffic. Omitted inherits the project's hold_by_default. Available only for blue/green updates; otherwise the request returns 400 with code HOLD_UNAVAILABLE. An explicit value applies to this update only and does not change the project setting.

confirm_downtime
boolean

Must be true when the update replaces the running container. Without it, such an update returns 409 with code DOWNTIME_CONFIRMATION_REQUIRED and does not begin.

Response

The container with its update in progress.

A container, Bunker or Monitor.

id
string<uuid> | null
required
name
string
required
repo
string | null
required

Source repository. For a container rendered from a template, the template repository.

config_name
string | null
required

Config registry name backing the deployment, when config-backed.

source
enum<string>
required
Available options:
github,
registry,
local
current_tag
string | null
required

Deployed version. For a container rendered from a template, the template version.

status
enum<string>
required
Available options:
created,
pending,
deploying,
started,
running,
failed,
stopping,
stopped
host_id
string<uuid> | null
required
domain
string | null
required

Domain the container serves on; the custom domain when set, otherwise internal_domain.

cpus
integer
required

CPU count from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

gpus
integer
required

GPU count from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

memory_mb
integer | null
required

Memory from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

config
string | null
required

Saved tinfoil-config.yml contents.

variables
string<byte> | null
required

Base64-encoded JSON object mapping variable names to values.

secrets
string[] | null
required

Names of the secrets the container uses.

ssh_keys
string[] | null
required

Names of the SSH keys installed in the container.

stale_secrets
string[] | null
required

Secrets changed since the container was deployed.

debug
boolean
required
held
boolean
required

Whether updates are held for review before going live.

github_app_connected
boolean
required
repo_status
enum<string>
required
Available options:
active,
deleted,
archived,
privatized
update_tag
string | null
required

Version an in-progress update deploys.

update_status
string | null
required

Status of the in-progress update deployment.

update_type
enum<string> | null
required

How the in-progress update replaces the running container.

Available options:
blue_green,
replace,
queued_deploy,
null
internal_domain
string
required
project_id
string<uuid> | null
required
deploy_started_at
string<date-time> | null
required
deploy_completed_at
string<date-time> | null
required
update_started_at
string<date-time> | null
required
update_completed_at
string<date-time> | null
required
boot_stages
any
required

Boot progress reported by the deployment as JSON, or null when none was reported.

update_boot_stages
any
required

Boot progress reported by the update deployment as JSON, or null when none was reported.

error_message
string | null
required
mark_latest_release
boolean
required

Whether a deployed version is marked as the repository's latest GitHub release.

created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required
last_deploy_attempt_tag
string | null
required
last_deploy_attempt_error
string | null
required
last_deploy_attempt_at
string<date-time> | null
required
sandbox
boolean
required
purpose
enum<string>
required
Available options:
production,
rnd
network_policy
object | null
required

Saved network policy, or null when none is set.

owner_key_mode
enum<string> | null
required

Who holds the owner key of a Bunker or Monitor; null unless owner_public_key is set.

Available options:
tmk,
umk,
null
update_strategy
enum<string>
required

Whether an update boots a candidate alongside the running container (blue_green) or must stop it first (replace), causing downtime. Derived from the saved configuration; an update's target release may require a different strategy, which the update plan reports.

Available options:
blue_green,
replace
connections
object
required

Endpoints of the container. Connect with a verifying client; opening a URL does not verify attestation, and a debug container is not confidential.

owner_public_key
string | null
required

Owner public key measured into a Bunker or Monitor.

clerk_user_id
string | null
required

ID of the user who created the container.

clerk_org_id
string | null
required

ID of the organization that owns the container, or null for a personal container.

disable_cc_mode
boolean
required

Whether the container was launched with confidential computing mode turned off.

display_order
integer
required

Position of the container within its project.

tinfoild_deployment_id
string | null
required

ID of the container's deployment on its host.

update_config
object | null
required

Configuration a pending update relaunches the container with, such as variables, secrets, ssh_keys, cpus and memory_mb.

update_deployment_id
string | null
required

ID of the update candidate's deployment on its host while an update runs.

ssh_port
integer

Published SSH port of the active deployment; omitted when none.

update_ssh_port
integer

Published SSH port of the update deployment; omitted when none.

supports_version_change
boolean

Whether a template-rendered container can change version; omitted when false.

host_name
string

Display name of the container's host; omitted when unknown.

update_host_name
string

Host an in-progress update moves the container to; omitted when it stays on the same host.

host_gpu_type
string

GPU type of the container's host; omitted for hosts without GPUs or when unknown.

host_cpu_type
string

CPU type of the container's host; omitted when unknown.

volumes
object

Volume ID attached to each mount name. Only returned by the single-container view, and omitted when none are attached.

volume_slots
object[]

Volume mounts the container's config declares.

object_storage
object