---
title: "创建审批流程模板"
method: POST
path: "/v1/projects/{project_name}/workflow_templates"
tags: ["workflow"]
---

# 创建审批流程模板

`POST /v1/projects/{project_name}/workflow_templates`

create workflow template

## Path parameters

- `project_name` string, required

## Request body

- V1CreateWorkflowTemplateReqV1
  - `allow_submit_when_less_audit_level` 'normal' | 'notice' | 'warn' | 'error'
  - `desc` string
  - `is_default` boolean
  - `workflow_step_template_list` V1WorkFlowStepTemplateReqV1[]
    - `approved_by_authorized` boolean
    - `assignee_user_id_list` string[]
    - `desc` string
    - `execute_by_authorized` boolean
    - `type` 'sql_review' | 'sql_execute' | 'export_review' | 'export_execute'
  - `workflow_template_name` string
  - `workflow_type` 'workflow' | 'data_export'

## Response `200`

OK

- V1GetWorkflowTemplateResV1
  - `code` integer
  - `data` V1WorkflowTemplateDetailResV1
    - `allow_submit_when_less_audit_level` 'normal' | 'notice' | 'warn' | 'error'
    - `desc` string
    - `is_default` boolean
    - `update_time` string
    - `workflow_step_template_list` V1WorkFlowStepTemplateResV1[]
      - `approved_by_authorized` boolean
      - `assignee_user_id_list` string[]
      - `desc` string
      - `execute_by_authorized` boolean
      - `number` integer
      - `type` string
    - `workflow_template_id` integer
    - `workflow_template_name` string
    - `workflow_type` 'workflow' | 'data_export'
  - `message` string

## Changes

- **2026-07-22** `f052fb310bd1` — 1 info
  - endpoint added
- **2026-07-21** `fa9603edf888` — 1 breaking
  - api removed without deprecation
- **2026-07-21** `eb1539eee052` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/actiontech/apis/sqle-api-docs/changes/v1/projects/:project_name/workflow_templates/post.md)

---

[API](https://skmtc.dev/actiontech/apis/sqle-api-docs.md) · [All operations](https://skmtc.dev/actiontech/apis/sqle-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/actiontech/sqle-api-docs/revisions/7ea48822b1b8/schema)
