From f9814bd54bf46d2402c06eff21699059fcd80137 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 18 Jul 2025 12:02:32 -0700 Subject: [PATCH] fix the parameters 422 issue with the run_workflow endpoint (#2985) --- skyvern/schemas/runs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/schemas/runs.py b/skyvern/schemas/runs.py index bf9ada7f..963fe79d 100644 --- a/skyvern/schemas/runs.py +++ b/skyvern/schemas/runs.py @@ -316,7 +316,7 @@ class WorkflowRunRequest(BaseModel): workflow_id: str = Field( description="ID of the workflow to run. Workflow ID starts with `wpid_`.", examples=["wpid_123"] ) - parameters: dict[str, Any] = Field(default={}, description="Parameters to pass to the workflow") + parameters: dict[str, Any] | None = Field(default=None, description="Parameters to pass to the workflow") title: str | None = Field(default=None, description="The title for this workflow run") proxy_location: ProxyLocation | None = Field( default=ProxyLocation.RESIDENTIAL,