Skip to main content
POST
Plan a container update

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

Update plan.

read_only
boolean
required
instance_id
string<uuid>
required
name
string
required
current
object
required
target
object
required
update_strategy
enum<string>
required
Available options:
blue_green,
replace
downtime_required
boolean
required
hold
boolean
required
hold_source
enum<string>
required
Available options:
project,
request
hold_available
boolean
required
mark_latest_release
boolean
required
configuration_changes
object
required

Names of changed items only, never values.

volume_data
string
required

What happens to persistent volume data; currently always "retained".

cost_estimate
object
required

available is false, with reason explaining why, when no estimate can be given.

secret_delivery
object

Present only when the target configuration sets a keyserver URL. Its absence does not mean external secrets were verified.

target_host_name
string

Host the container moves to, when the update is a move.