Skip to content

Automate browser based workflows with AI

fix the parameters 422 issue with the run_workflow endpoint (#2985)

Shuchang Zhengf9814bd54bf4
diff --git a/skyvern/schemas/runs.py b/skyvern/schemas/runs.py
index bf9ada7fa..963fe79dc 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,