---
title: "✨ Update a few-shot example"
method: PATCH
path: "/api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/{id}"
tags: ["Prompts"]
---

# ✨ Update a few-shot example

`PATCH /api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/{id}`

CRUD API for managing few-shot examples on a ThirdPartyModelVersion.

## Path parameters

- `id` integer, required
- `prompt_id` integer, required
- `version_id` integer, required

## Request body

- PatchedFewShotExampleRequest
  - `annotation` integer
  - `order` integer
  - `task` integer

## Response `200`

- FewShotExample
  - `annotation` integer, required
  - `annotation_result` object[], required
  - `created_at` string, date-time, required
  - `id` integer, required
  - `order` integer
  - `task` integer, required
  - `task_data` object, required

## Changes

> 103 revisions in range; 1 not diffed.

- **2026-07-08** `b5f055b9d45b` — 2 breaking
  - the `annotation_result` response's property type changed from `string` to `array` for status `200`
  - the `task_data` response's property type changed from `string` to `object` for status `200`

[Change history](https://skmtc.dev/humansignal/apis/label-studio-api/changes/api/prompts/:prompt_id/versions/:version_id/few-shot-examples/:id/patch.md)

---

[API](https://skmtc.dev/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.dev/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/revisions/8aba0fdc124a/schema)
