---
title: "Change where the catalog comes from and how it is refreshed."
method: PATCH
path: "/ai/model-catalog/settings"
tags: ["AI Gateway Model Catalog"]
---

# Change where the catalog comes from and how it is refreshed.

`PATCH /ai/model-catalog/settings`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/model-catalog/settings`
- Auth: HTTP bearer

## Request body

- ModelCatalogSettingsUpdate: A change to the catalog settings. Absent fields are left as they are.
  - `auto_refresh` boolean, nullable
  - `discover_provider_models` boolean, nullable
  - `refresh_interval_hours` integer, nullable
  - `source_url` string, nullable: A custom `https://` catalog URL, or an empty string to go back to the catalog published in the Temps repository.

## Response `200`

Settings saved

- ModelCatalogSettings: Where the catalog comes from and how it is refreshed.
  - `auto_refresh` boolean, required: Refresh the catalog in the background.
  - `default_source_url` string, required: The catalog published in the Temps repository.
  - `discover_provider_models` boolean, required: Rediscover every active provider key's models on the same interval.
  - `effective_source_url` string, required: The URL refreshes fetch.
  - `refresh_interval_hours` integer, required: Hours between background refreshes (1 to 168).
  - `source_url` string, nullable: Custom catalog URL; `null` uses `default_source_url`.

## Other responses

- `400`: Invalid source URL or interval
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Database error

## Changes

- **2026-11-24** `092dd9dae7a3`: 1 info
  - endpoint added
- **2026-11-24** `4496ed4a25a7`: 1 breaking
  - api path removed without deprecation
- **2026-11-23** `e5c54359463f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/model-catalog/settings/patch.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)
