From fb1160e833126d87535ae38e9e712110722fed62 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Mon, 20 Apr 2026 16:21:18 +0800 Subject: [PATCH] fix(api): make unused message body parameter optional in create_end_user Change Body(...) to Body(None) for the message parameter which is never used directly (request body is read via request.json() instead). The required marker caused unnecessary 422 validation errors. --- api/app/controllers/service/end_user_api_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/controllers/service/end_user_api_controller.py b/api/app/controllers/service/end_user_api_controller.py index 1faea6ef..572f4aab 100644 --- a/api/app/controllers/service/end_user_api_controller.py +++ b/api/app/controllers/service/end_user_api_controller.py @@ -47,7 +47,7 @@ async def create_end_user( request: Request, api_key_auth: ApiKeyAuth = None, db: Session = Depends(get_db), - message: str = Body(..., description="Request body"), + message: str = Body(None, description="Request body"), ): """ Create or retrieve an end user for the workspace.