---
title: "POST /v1/admin/api-spec-templates"
method: POST
path: "/v1/admin/api-spec-templates"
tags: ["AdminAPISpecTemplateService"]
---

# POST /v1/admin/api-spec-templates

`POST /v1/admin/api-spec-templates`

CreateAPISpecTemplate 创建模板（code/endpoint_type 创建后不可改）

## Request body

- AdminV1CreateAPISpecTemplateRequest — CreateAPISpecTemplateRequest 创建模板请求
  - `code` string
  - `endpointType` string
  - `fieldConfig` string
  - `name` string
  - `requestPath` string
  - `status` integer

## Response `200`

OK

- AdminV1CreateAPISpecTemplateReply — CreateAPISpecTemplateReply 创建模板响应
  - `id` string

---

[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)
