---
title: "Repoint a service's continuous archive source"
method: POST
path: "/external-services/{id}/continuous-archive-source"
tags: ["External Services"]
---

# Repoint a service's continuous archive source

`POST /external-services/{id}/continuous-archive-source`

## 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}/continuous-archive-source`
- Auth: none declared

Deliberately, explicitly moves where a service's continuous, standing
archiving process writes: Postgres/Timescale's WAL-G `archive_command`,
or MariaDB's binlog shipper. Both need everything written under one S3
prefix to stay restorable — data archived before this call lives under
the *previous* source and will no longer be verifiable or replayable
once archiving points at the new one.

This exists because a backup schedule that requests a different S3
source than the one archiving is currently pinned to is refused, not
silently honoured (see `ExternalServiceManager::repoint_continuous_archive_source`
for the incident this prevents). Call this endpoint to deliberately move
the pin instead — for example, to switch a service from an operator's
own S3 source onto Temps Cloud's managed one.

## Path parameters

- `id` integer, required

## Request body

- RepointContinuousArchiveSourceRequest: Deliberately, explicitly move where a service's continuous archiving process (Postgres/Timescale WAL-G, MariaDB's binlog shipper) points. See `ExternalServiceManager::repoint_continuous_archive_source` for why this is a dedicated, guarded operation rather than something a schedule change does implicitly.
  - `new_s3_source_id` integer, required: The S3 source continuous archiving should point at from now on.

## Response `200`

Continuous archive source repointed

- ContinuousArchiveSourceResponse
  - `continuous_archive_pinned_at` string, required
  - `continuous_archive_s3_source_id` integer, required
  - `service_id` integer, required

## Other responses

- `400`: Service type does not support continuous archiving, or the requested S3 source does not exist
- `404`: Service not found
- `500`: Internal server error

## Changes

- **2026-09-07** `e2dec7aec75d`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `9447dc4c2bc3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/continuous-archive-source/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)
