---
title: "Mark an S3 source as the default. All new backups/schedules/services that do not explicitly reference a source will use the default. Returns the updated source."
method: POST
path: "/backups/s3-sources/{id}/set-default"
tags: ["Backups"]
---

# Mark an S3 source as the default. All new backups/schedules/services that do not explicitly reference a source will use the default. Returns the updated source.

`POST /backups/s3-sources/{id}/set-default`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/backups/s3-sources/{id}/set-default`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

S3 source marked as default

- S3SourceResponse: Response type for S3 source
  - `access_key_id` string, required
  - `bucket_name` string, required
  - `bucket_path` string, required
  - `created_at` string, date-time, required
  - `effective_endpoint` string, nullable: The endpoint every client (WAL-G, restore and worker jobs) receives, always with an explicit scheme. `None` for AWS S3 itself.
  - `effective_force_path_style` boolean, required: Whether clients actually use path-style addressing.
  - `endpoint` string, nullable
  - `force_path_style` boolean, nullable
  - `id` integer, required
  - `is_default` boolean, required
  - `managed_by_cloud` boolean, required: True when this source was auto-provisioned by a Temps Cloud link rather than entered by an operator. Managed sources cannot be edited or deleted from this API; disconnect Temps Cloud to remove one.
  - `name` string, required
  - `path_style_reason` 'configured' | 'ip_address_endpoint' | 'managed_object_store', required: Why `effective_force_path_style` has its value: the source's own setting, or forced because the endpoint is an IP address or a Temps-managed object store.
  - `region` string, required
  - `secret_key` string, required
  - `updated_at` string, date-time, required
  - `worker_credentials` 'scoped' | 'allow_full', required: What a worker node receives from this source (ADR-102).

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: S3 source not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 2 breaking
  - the `created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **2026-11-13** `8b476d8ce3ea`: 3 info
  - added the optional property `effective_endpoint` to the response with the `200` status
  - added the required property `effective_force_path_style` to the response with the `200` status
  - added the required property `path_style_reason` to the response with the `200` status
- **2026-11-12** `e052e98bb073`: 1 info
  - added the required property `worker_credentials` to the response with the `200` status
- **2026-11-09** `12896146b193`: 4 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 `500` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/backups/s3-sources/:id/set-default/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)
