latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

Prompt Management

Patch Prompt

Partially update an existing prompt

👉 Prompt docs

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:

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"
        }
    }'
patch/prompts/{prompt_id}

Path parameters

prompt_idstring required

Request body

Response

Successful Response

{"stackTrail":"paths:/prompts/{prompt_id}:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}