From f1fdb59bbfe99e2f0622a998d3248bef00b83d8f Mon Sep 17 00:00:00 2001 From: Ida Dittrich Date: Sun, 12 Oct 2025 19:22:30 +0200 Subject: [PATCH] fix: exclude id field from prompt update request body --- modules/routes/routeDataPrompts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/routes/routeDataPrompts.py b/modules/routes/routeDataPrompts.py index a9c8952f..b3ae6f47 100644 --- a/modules/routes/routeDataPrompts.py +++ b/modules/routes/routeDataPrompts.py @@ -95,8 +95,8 @@ async def update_prompt( detail=f"Prompt with ID {promptId} not found" ) - # Convert Prompt to dict for interface - update_data = promptData.dict() + # Convert Prompt to dict for interface, excluding the id field + update_data = promptData.dict(exclude={'id'}) # Update prompt updatedPrompt = managementInterface.updatePrompt(promptId, update_data)