---
title: "Update Operation Prompt"
method: PATCH
path: "/v1/api-performance/prompts/{prompt_id}"
tags: ["api-performance"]
---

# Update Operation Prompt

`PATCH /v1/api-performance/prompts/{prompt_id}`

## Path parameters

- `prompt_id` string, required

## Request body

- UpdatePublicOperationPromptRequest
  - `prompt` string, nullable
  - `expected_behavior` string, nullable
  - `graders` object[], nullable
  - `reference_answer` string, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- PublicOperationPrompt
  - `id` string, required
  - `operation_id` string, required
  - `eval_type` string, required
  - `prompt` string, required
  - `expected_behavior` string, nullable
  - `graders` object[]
  - `reference_answer` string, nullable
  - `enabled` boolean
  - `created_at` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-15** `820f778732b1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usesapient/apis/sapient-public-api/changes/v1/api-performance/prompts/:prompt_id/patch.md)

---

[API](https://skmtc.dev/usesapient/apis/sapient-public-api.md) · [All operations](https://skmtc.dev/usesapient/apis/sapient-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usesapient/sapient-public-api/revisions/820f778732b1/schema)
