---
title: "更新模板"
method: PUT
path: "/api/v1/template/update"
tags: ["任务中心"]
---

# 更新模板

`PUT /api/v1/template/update`

更新任务模板

## Query parameters

- `id` integer, required

## Request body

- ModelTaskTemplate
  - `content` string — 任务内容
  - `createdAt` string — 创建时间
  - `createdBy` string — 创建人
  - `id` integer
  - `name` string — 任务名称
  - `remark` string — 备注信息
  - `type` integer — 1=shell模板, 2=python模板, 3=ansible模板
  - `updatedAt` string — 更新时间
  - `updatedBy` string — 更新人

## Response `200`

OK

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/versions/25cac8835c4c/schema)
