---
title: "更新流水线"
method: PATCH
path: "/v1/projects/{project_name}/pipelines/{pipeline_id}/"
tags: ["pipeline"]
---

# 更新流水线

`PATCH /v1/projects/{project_name}/pipelines/{pipeline_id}/`

update pipeline

## Path parameters

- `project_name` string, required
- `pipeline_id` string, required

## Request body

- V1UpdatePipelineReqV1
  - `address` string — 关联流水线地址
  - `description` string — 流水线描述
  - `name` string — 流水线名称
  - `nodes` V1UpdatePipelineNode[] — 节点信息
    - `audit_method` 'offline' | 'online' — 审核方式，必选，可选项为离线审核、在线审核
    - `id` integer
    - `instance_name` string — 数据源名称，在线审核时必填
    - `instance_type` string — 数据源类型，离线审核时必填
    - `name` string — 节点名称，必填，支持中文、英文+数字+特殊字符
    - `object_path` string — 审核脚本路径，必填，用户填写文件路径
    - `object_type` 'sql' | 'mybatis' — 审核对象类型，必填，可选项为SQL文件、MyBatis文件
    - `rule_template_name` string — 审核规则模板，必填
    - `type` 'audit' | 'release' — 节点类型，必填，选项为“审核”或“上线”

## Response `200`

OK

---

[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/3e36a0067703/schema)
