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

---

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