---
title: "PUT /v1/admin/api-spec-templates/{id}"
method: PUT
path: "/v1/admin/api-spec-templates/{id}"
tags: ["AdminAPISpecTemplateService"]
---

# PUT /v1/admin/api-spec-templates/{id}

`PUT /v1/admin/api-spec-templates/{id}`

UpdateAPISpecTemplate 更新模板（name/request_path/status/field_config）

## Path parameters

- `id` string, required

## Request body

- AdminV1UpdateAPISpecTemplateRequest — UpdateAPISpecTemplateRequest 更新模板请求（code/endpoint_type 不可改）
  - `fieldConfig` string
  - `id` string
  - `name` string
  - `requestPath` string
  - `status` integer

## Response `200`

OK

- AdminV1UpdateAPISpecTemplateReply — UpdateAPISpecTemplateReply 更新模板响应
  - `ok` boolean

---

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