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)