feat: add examples to create workflow and use sdk

This commit is contained in:
Abhishek Kumar 2026-04-24 14:09:24 +05:30
parent 16587fd7e1
commit f041e6030d
18 changed files with 1038 additions and 7 deletions

View file

@ -273,7 +273,13 @@ def _transform_schema_errors(
return out
@router.post("/create/definition")
@router.post(
"/create/definition",
**sdk_expose(
method="create_workflow",
description="Create a new workflow from a workflow definition.",
),
)
async def create_workflow(
request: CreateWorkflowRequest, user: UserModel = Depends(get_user)
) -> WorkflowResponse: