---
title: "新增模板"
method: POST
path: "/open-api/uns/template"
tags: ["supos/open", "suposOpen"]
---

# 新增模板

`POST /open-api/uns/template`

## Request body

- CreateTemplateVo
  - `alias` string
  - `description` string
  - `fields` FieldDefine[], required
    - `decimal` string
    - `displayName` string
    - `inc` boolean
    - `index` string
    - `lastTime` integer
    - `lastValue` string
    - `lowerLimit` number, double
    - `maxLen` string
    - `name` string, required
    - `remark` string
    - `systemField` boolean
    - `tbValueName` string
    - `type` string, required
    - `unique` boolean
    - `unit` string
    - `uns` object
    - `upperLimit` number, double
  - `name` string, required

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` ResultVO
    - `code` integer, required
    - `data` object
    - `msg` string, required
  - `msg` string

---

[API](https://skmtc.net/freezonex/apis/untitled-api.md) · [All operations](https://skmtc.net/freezonex/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freezonex/untitled-api/revisions/1837fd35a283/schema)
