From 10dd0f3fa05eb1d43a99e15abfdf977e0120016b Mon Sep 17 00:00:00 2001 From: LinJi <237525603@qq.com> Date: Fri, 12 Jul 2024 08:33:50 +0800 Subject: [PATCH] fix document error for "/workflows/:task_id/stop" (#6209) --- .../components/develop/template/template_workflow.en.mdx | 6 +++--- .../components/develop/template/template_workflow.zh.mdx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/app/components/develop/template/template_workflow.en.mdx b/web/app/components/develop/template/template_workflow.en.mdx index 806cf992e0..9580c2aa0b 100644 --- a/web/app/components/develop/template/template_workflow.en.mdx +++ b/web/app/components/develop/template/template_workflow.en.mdx @@ -213,7 +213,7 @@ Workflow applications offers non-session support and is ideal for translation, a --- ### Request Example - + ```bash {{ title: 'cURL' }} - curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \ + curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ -H 'Content-Type: application/json' \ --data-raw '{ diff --git a/web/app/components/develop/template/template_workflow.zh.mdx b/web/app/components/develop/template/template_workflow.zh.mdx index 090823c504..6264eb57e5 100644 --- a/web/app/components/develop/template/template_workflow.zh.mdx +++ b/web/app/components/develop/template/template_workflow.zh.mdx @@ -209,7 +209,7 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等 --- ### Request Example - + ```bash {{ title: 'cURL' }} - curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \ + curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ -H 'Content-Type: application/json' \ --data-raw '{