fix: exclude id field from prompt update request body

This commit is contained in:
Ida Dittrich 2025-10-12 19:22:30 +02:00
parent 8a8b0453ad
commit f1fdb59bbf

View file

@ -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)