---
title: "Replace the instance-wide default healthcheck of managed service containers"
method: PUT
path: "/external-services/healthcheck-defaults"
tags: ["External Services"]
---

# Replace the instance-wide default healthcheck of managed service containers

`PUT /external-services/healthcheck-defaults`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/healthcheck-defaults`
- Auth: HTTP bearer

Applies to containers created or recreated afterwards; nothing running
changes. Send null for a value to use each engine's built-in timing.

## Request body

- HealthcheckOverrides: Overrides of some or all of the five healthcheck values. `None` inherits.
  - `interval_secs` integer, nullable: Seconds between checks once healthy (5–3600).
  - `retries` integer, nullable: Consecutive failures that make the container unhealthy (1–10).
  - `start_interval_secs` integer, nullable: Seconds between checks while starting (1–60).
  - `start_period_secs` integer, nullable: Seconds after start during which failures do not count (0–600).
  - `timeout_secs` integer, nullable: Seconds one check may run (1–60, and shorter than the interval).

## Response `200`

Saved

- HealthcheckDefaults: The instance default and what it gives each engine.
  - `engines` EngineHealthcheckDefault[], required
    - `builtin` HealthcheckTimings, required: Temps' own timings for the engine.
      - `interval_secs` integer, required: Seconds between checks once the container is healthy.
      - `retries` integer, required: Consecutive failed checks that make the container unhealthy.
      - `start_interval_secs` integer, required: Seconds between checks while the container is starting, within `start_period_secs`.
      - `start_period_secs` integer, required: Seconds after start during which failed checks do not count and checks run every `start_interval_secs`.
      - `timeout_secs` integer, required: Seconds one check may run before it counts as failed.
    - `effective` ResolvedHealthcheck, required: What a service without overrides gets, and where each value comes from.
      - `sources` HealthcheckSources, required: The source of each of the five values.
        - `interval_secs` 'builtin' | 'instance_default' | 'service', required: Where an effective healthcheck value comes from.
        - `retries` 'builtin' | 'instance_default' | 'service', required: Where an effective healthcheck value comes from.
        - `start_interval_secs` 'builtin' | 'instance_default' | 'service', required: Where an effective healthcheck value comes from.
        - `start_period_secs` 'builtin' | 'instance_default' | 'service', required: Where an effective healthcheck value comes from.
        - `timeout_secs` 'builtin' | 'instance_default' | 'service', required: Where an effective healthcheck value comes from.
      - `timings` HealthcheckTimings, required: The five numbers of a Docker healthcheck, in whole seconds (retries is a count).
        - `interval_secs` integer, required: Seconds between checks once the container is healthy.
        - `retries` integer, required: Consecutive failed checks that make the container unhealthy.
        - `start_interval_secs` integer, required: Seconds between checks while the container is starting, within `start_period_secs`.
        - `start_period_secs` integer, required: Seconds after start during which failed checks do not count and checks run every `start_interval_secs`.
        - `timeout_secs` integer, required: Seconds one check may run before it counts as failed.
    - `engine` 'postgres' | 'redis' | 'mariadb' | 'mongodb' | 'rustfs' | 'minio', required: Engines whose containers Temps manages and may need to replace.
    - `readiness_wait_secs` integer, required: How long Temps waits for a new container of this engine to become healthy; a check has to land inside it.
  - `overrides` HealthcheckOverrides, required: The instance default (null = the engine's built-in value).
    - `interval_secs` integer, nullable: Seconds between checks once healthy (5–3600).
    - `retries` integer, nullable: Consecutive failures that make the container unhealthy (1–10).
    - `start_interval_secs` integer, nullable: Seconds between checks while starting (1–60).
    - `start_period_secs` integer, nullable: Seconds after start during which failures do not count (0–600).
    - `timeout_secs` integer, nullable: Seconds one check may run (1–60, and shorter than the interval).

## Other responses

- `400`: A value is out of range, the timeout is not shorter than the interval, or no check would land inside an engine's readiness wait
- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: The default would make a service's existing overrides invalid
- `500`: Internal server error

## Changes

- **2026-11-14** `3d5be996525d`: 1 info
  - endpoint added
- **2026-11-14** `101ef74660bc`: 1 breaking
  - api path removed without deprecation
- **2026-11-13** `b24ba964110a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/healthcheck-defaults/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
