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

# 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
    - `prompt_id` string, nullable
    - `prompt_integration` string, required
    - `api_base` string, nullable
    - `api_key` string, nullable
    - `provider_specific_query_params` object, nullable
    - `ignore_prompt_manager_model` boolean, nullable
    - `ignore_prompt_manager_optional_params` boolean, nullable
    - `dotprompt_content` string, nullable
  - `prompt_info` PromptInfo
    - `prompt_type` 'config' | 'db', required
    - `environment` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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