group workflow apis (#2396)
Some checks are pending
Run tests and pre-commit / test (push) Waiting to run
Run tests and pre-commit / fe-lint-build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run
Build Skyvern SDK and publish to PyPI / check-version-change (push) Waiting to run
Build Skyvern SDK and publish to PyPI / run-ci (push) Blocked by required conditions
Build Skyvern SDK and publish to PyPI / build-sdk (push) Blocked by required conditions
Sync to skyvern-cloud / sync (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2025-05-20 01:44:17 -07:00 committed by GitHub
parent 064a2aff24
commit 56267987e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -440,7 +440,7 @@ async def cancel_run(
@base_router.post(
"/workflows",
response_model=Workflow,
tags=["Agent"],
tags=["Workflows"],
openapi_extra={
"x-fern-sdk-group-name": "agent",
"x-fern-sdk-method-name": "create_workflow",
@ -508,7 +508,7 @@ async def create_workflow(
@base_router.post(
"/workflows/{workflow_id}",
response_model=Workflow,
tags=["Agent"],
tags=["Workflows"],
openapi_extra={
"requestBody": {
"content": {"application/x-yaml": {"schema": WorkflowCreateYAMLRequest.model_json_schema()}},
@ -580,7 +580,7 @@ async def update_workflow(
@legacy_base_router.delete("/workflows/{workflow_id}/", include_in_schema=False)
@base_router.post(
"/workflows/{workflow_id}/delete",
tags=["Agent"],
tags=["Workflows"],
openapi_extra={
"x-fern-sdk-group-name": "agent",
"x-fern-sdk-method-name": "delete_workflow",

View file

@ -298,7 +298,7 @@ workflow_definition:
DELETE_WORKFLOW_CODE_SAMPLE = """from skyvern import Skyvern
skyvern = Skyvern(api_key="your_api_key")
await skyvern.agent.delete_workflow(workflow_id="wpid_123")
await skyvern.workflows.delete_workflow(workflow_id="wpid_123")
"""
SEND_TOTP_CODE_CODE_SAMPLE = """from skyvern import Skyvern