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

# Update Prompt

`PUT /prompts/{prompt_id}`

Update an existing prompt

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

Example Request:
```bash
curl -X PUT "http://localhost:4000/prompts/my_prompt_id" \
    -H "Authorization: Bearer <your_api_key>" \
    -H "Content-Type: application/json" \
    -d '{
        "prompt_id": "my_prompt",
        "litellm_params": {
            "prompt_id": "my_prompt",
                "prompt_integration": "dotprompt",
                "prompt_directory": "/path/to/prompts"
            },
            "prompt_info": {
                "prompt_type": "config"
            }
        }
    }'
```

## Path parameters

- `prompt_id` string, required

## Request body

- Prompt
  - `prompt_id` string, required
  - `litellm_params` PromptLiteLLMParams, required
    - `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)
