---
title: "Update a response format preset"
method: PATCH
path: "/api/response-format-presets/{id}/"
tags: ["Prompts"]
---

# Update a response format preset

`PATCH /api/response-format-presets/{id}/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/response-format-presets/{id}/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

When supplied, schema content is validated and preserved unchanged.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `response_format_content` string: JSON text preserved verbatim. It must decode to an object with a non-empty `name` and an object-valued `schema`.
  - `is_enforcing_response_format` boolean

## Response `200`

Preset updated.

- object
  - `id` string, required
  - `name` string, required
  - `response_format_content` string, required: JSON text preserved verbatim. It must decode to an object with a non-empty `name` and an object-valued `schema`.
  - `is_enforcing_response_format` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid preset content.
- `403`: The API key is missing, invalid or expired.
- `404`: Preset not found in the caller's project.

## Changes

- **2026-10-21** `c30bcb383ee8`: 1 breaking, 4 info
  - request body became required
  - api operation id `prompts_api_response_format_presets_partial_update` removed and replaced with `api_response_format_presets_partial_update`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - api tag `Prompts` added
  - …1 more
- **2026-10-02** `b830b79cfd52`: 2 info
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `api-response-format-presets-partial-update` removed and replaced with `prompts_api_response_format_presets_partial_update`

[Operation history](https://skmtc.dev/respan/apis/respan-api/changes/api/response-format-presets/:id/patch.md)

---

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