---
title: "Patch Prompt"
method: PATCH
path: "/prompts/{prompt_id}"
tags: ["prompts"]
---

# Patch Prompt

`PATCH /prompts/{prompt_id}`

Partially update an existing prompt

👉 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_management)

This endpoint allows updating specific fields of a prompt without sending the entire object.
Only the following fields can be updated:
- litellm_params: LiteLLM parameters for the prompt
- prompt_info: Additional information about the prompt

Example Request:
```bash
curl -X PATCH "http://localhost:4000/prompts/my_prompt_id" \
    -H "Authorization: Bearer <your_api_key>" \
    -H "Content-Type: application/json" \
    -d '{
        "prompt_info": {
            "prompt_type": "db"
        }
    }'
```

## Path parameters

- `prompt_id` string, required

## Query parameters

- `environment` string, nullable

## Request body

- PatchPromptRequest
  - `litellm_params` PromptLiteLLMParams
    - `api_base` string, nullable
    - `api_key` string, nullable
    - `dotprompt_content` string, nullable
    - `ignore_prompt_manager_model` boolean, nullable
    - `ignore_prompt_manager_optional_params` boolean, nullable
    - `prompt_id` string, nullable
    - `prompt_integration` string, required
    - `provider_specific_query_params` object, nullable
  - `prompt_info` PromptInfo
    - `environment` string, nullable
    - `prompt_type` 'config' | 'db', required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-01** `5c00a227eebf` — 2 info
  - api tag `prompts` added
  - api tag `Prompt Management` removed
- **2026-08-30** `24ad9eaf6a00` — 2 info
  - api tag `Prompt Management` added
  - api tag `prompts` removed
- **2026-08-27** `4a06c3148b6c` — 2 info
  - api tag `prompts` added
  - api tag `Prompt Management` removed
- **2026-08-18** `0f1119a1c002` — 2 info
  - api tag `Prompt Management` added
  - api tag `prompts` removed
- **2026-08-15** `19cc785a8024` — 2 info
  - api tag `prompts` added
  - api tag `Prompt Management` removed

[Full history](https://skmtc.dev/flock/apis/litellm-api/changes/prompts/:prompt_id/patch.md)

---

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