---
title: "Restore a preset"
method: POST
path: "/presets/{slug}/restore"
tags: ["Presets"]
---

# Restore a preset

`POST /presets/{slug}/restore`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/presets/{slug}/restore`
- Auth: HTTP bearer

Re-activates an archived preset so it resolves for inference again. No version is created and the designated version is unchanged. Restoring an active preset returns it unchanged. A disabled preset returns 409. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected. `workspace_id` may be sent as a query parameter or a JSON body field.

## Path parameters

- `slug` string, required: URL-safe slug identifying the preset.

## Query parameters

- `workspace_id` string, uuid: Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.

## Response `200`

The restored preset with its designated version.

- GetPresetResponse: A preset with its currently designated version.
  - `data` PresetWithDesignatedVersion, required: A preset with its currently designated version.
    - [`Preset`](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4/schema?at=%2Fcomponents%2Fschemas%2FPreset)
    - object
      - `designated_version` PresetDesignatedVersion, nullable, required: A specific version of a preset, containing config and optional system prompt.
        - `config` object, required
        - `created_at` string, required
        - `creator_id` string, required
        - `id` string, required
        - `preset_id` string, required
        - `system_prompt` string, nullable, required
        - `updated_at` string, required
        - `version` integer, required

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `409`: Conflict - Resource conflict or concurrent modification
- `500`: Internal Server Error - Unexpected server error

## Changes

- **2026-11-09** `ac5e476d6286`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/presets/:slug/restore/post.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
