---
title: "Recreate a database's container from its workload spec (internal, operator-only)"
method: POST
path: "/external-services/{id}/workload-mode/recreate"
tags: ["External Services"]
---

# Recreate a database's container from its workload spec (internal, operator-only)

`POST /external-services/{id}/workload-mode/recreate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/workload-mode/recreate`
- Auth: HTTP bearer

An ADR-055 migration control for operators and the CLI; the console does
not show it. Databases default to `legacy` and need no change here.

## Path parameters

- `id` integer, required

## Request body

- RecreateFromWorkloadSpecRequest
  - `confirmed_fingerprint` string, nullable: The `fingerprint` of the pending changes being confirmed. Leave out to only list them: nothing is recreated without it.

## Response `200`

The changes to confirm, or the recreate's result

- RecreateFromWorkloadSpecResponse
  - `pending_changes` PendingChanges, required: The changes to confirm, or the changes that were applied.
    - `changes` WorkloadChange[], required
      - `after_recreate` string, required: What the container will have once recreated from its spec.
      - `current` string, required: What the running container has. Secrets are shown as `***`.
      - `field` string, required: `labels`, `restart_policy`, `pids_limit`, `no_new_privileges`, `healthcheck`, `log_config`, ...
    - `computed_at` string, date-time, required
    - `container_found` boolean, required: Whether the database's container exists to compare against.
    - `container_name` string, nullable
    - `fingerprint` string, required: Identifies `changes`: pass it back to confirm a recreate.
    - `mode` 'legacy' | 'shadow' | 'enforce', required
    - `node_id` integer, nullable: `None`: the control plane.
    - `service_id` integer, required
    - `service_name` string, required
    - `support` WorkloadSupport, required: Whether a database can leave `legacy`, and why not.
      - `reason` string, nullable: Why the database stays on its engine's own path, when unsupported.
      - `supported` boolean, required
  - `remaining_changes` PendingChanges, nullable: What recreating a database's container from its workload spec would change, listed before anything is changed. A recreate is only accepted with this response's `fingerprint`, so what the administrator confirmed is what is applied.
    - `changes` WorkloadChange[], required
      - `after_recreate` string, required: What the container will have once recreated from its spec.
      - `current` string, required: What the running container has. Secrets are shown as `***`.
      - `field` string, required: `labels`, `restart_policy`, `pids_limit`, `no_new_privileges`, `healthcheck`, `log_config`, ...
    - `computed_at` string, date-time, required
    - `container_found` boolean, required: Whether the database's container exists to compare against.
    - `container_name` string, nullable
    - `fingerprint` string, required: Identifies `changes`: pass it back to confirm a recreate.
    - `mode` 'legacy' | 'shadow' | 'enforce', required
    - `node_id` integer, nullable: `None`: the control plane.
    - `service_id` integer, required
    - `service_name` string, required
    - `support` WorkloadSupport, required: Whether a database can leave `legacy`, and why not.
      - `reason` string, nullable: Why the database stays on its engine's own path, when unsupported.
      - `supported` boolean, required
  - `status` 'confirmation_required' | 'recreated', required: What a recreate request did.

## Other responses

- `401`: Unauthorized
- `403`: Instance administrator required
- `404`: Service not found
- `409`: Not in enforce mode, or the pending changes changed since they were shown
- `422`: The workload spec was refused at admission
- `500`: The recreate failed; the original container was kept

## Changes

- **2026-11-09** `12896146b193`: 6 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `409` status
  - …2 more
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/workload-mode/recreate/post.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)
