---
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}/`

Partially update a preset. When supplied, schema content is validated and preserved verbatim.

## Path parameters

- `id` string, required

## Headers

- `Authorization` 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.

- PromptsApiResponseFormatPresetsPartialUpdateResponse200
  - `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.
- `401` — Authentication failed.
- `404` — Preset not found in the caller's project.

## Changes

- **2026-08-22** `b18c72975097` — 1 breaking
  - the `name` request property's minLength was increased from `0` to `1`
- **2026-08-13** `4e064cf81dae` — 6 info
  - api tag `prompts` added
  - api tag `platformApi` removed
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - …2 more
- **2026-07-31** `c26d550029f8` — 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
