--- id: 15a8cda0-76d9-4f4d-8f30-ce9430e1d609 type: solution title: "Fix custom command creator POST validation" tags: [major-domo, database, python, fastapi, pydantic, fix] importance: 0.6 confidence: 0.8 created: "2025-12-13T22:31:54.686464+00:00" updated: "2025-12-13T22:31:54.686464+00:00" --- CustomCommandCreatorModel in database API had 'id: int' as required field, causing 422 errors when Discord bot tried to create new creators via POST. Changed to 'id: Optional[int] = None' since database auto-generates IDs. File: app/routers_v3/custom_commands.py:23. Lesson: Pydantic models for POST (create) endpoints should use Optional for ID fields.