---
title: "✨ Update prompt version"
method: PATCH
path: "/api/prompts/{prompt_id}/versions/{version_id}"
tags: ["Prompts"]
---

# ✨ Update prompt version

`PATCH /api/prompts/{prompt_id}/versions/{version_id}`

<Card href="https://humansignal.com/goenterprise">
        <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
        <p style="margin-top: 10px; font-size: 14px;">
            This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
        </p>
    </Card>
Update a specific prompt version by ID.

## Path parameters

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

## Request body

- PatchedThirdPartyModelVersionRequest
  - `max_few_shot_examples` integer, nullable — Max number of few-shot examples to include in prompts. 0 = disabled.
  - `model_provider_connection` integer, nullable
  - `organization` integer, nullable
  - `parent_model` integer — Parent model interface ID
  - `prompt` string — Prompt to execute
  - `provider` 'OpenAI' | 'AzureOpenAI' | 'AzureAIFoundry' | 'VertexAI' | 'Gemini' | 'Anthropic' | 'Custom' — * `OpenAI` - OpenAI * `AzureOpenAI` - AzureOpenAI * `AzureAIFoundry` - AzureAIFoundry * `VertexAI` - VertexAI * `Gemini` - Gemini * `Anthropic` - Anthropic * `Custom` - Custom
  - `provider_model_id` string — The model ID to use within the given provider, e.g. gpt-3.5
  - `title` string — Model name

## Response `200`

- ThirdPartyModelVersion
  - `created_at` string, date-time, required
  - `created_by` UserSimple, required — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
    - `avatar` string, nullable, required
    - `email` string, email
    - `first_name` string
    - `id` integer, required
    - `last_name` string
    - `username` string, required
  - `id` integer, required
  - `max_few_shot_examples` integer, nullable — Max number of few-shot examples to include in prompts. 0 = disabled.
  - `model_display_name` string, required — Human-readable model name derived from provider_model_id.
  - `model_provider_connection` integer, nullable
  - `organization` integer, nullable
  - `parent_model` integer — Parent model interface ID
  - `prompt` string, required — Prompt to execute
  - `provider` 'OpenAI' | 'AzureOpenAI' | 'AzureAIFoundry' | 'VertexAI' | 'Gemini' | 'Anthropic' | 'Custom' — * `OpenAI` - OpenAI * `AzureOpenAI` - AzureOpenAI * `AzureAIFoundry` - AzureAIFoundry * `VertexAI` - VertexAI * `Gemini` - Gemini * `Anthropic` - Anthropic * `Custom` - Custom
  - `provider_model_id` string, required — The model ID to use within the given provider, e.g. gpt-3.5
  - `score` number, double, nullable, required
  - `title` string, required — Model name
  - `updated_at` string, date-time, required

---

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