---
title: "批量创建产品物模型"
method: POST
path: "/api/v1/things/product/schema/multi-create"
tags: ["things/product/schema", "thingsProductSchema"]
---

# 批量创建产品物模型

`POST /api/v1/things/product/schema/multi-create`

## Request body

- ProductSchemaMultiCreateReq
  - `identifiers` string[] — 导入的标识符列表
  - `list` ProductSchemaInfo[] — 如果没有填标识符列表取这里
    - `affordance` string
    - `controlMode` integer — 控制模式: 1: 可以群控,可以单控 2:只能单控
    - `desc` string — 描述
    - `extendConfig` string — 拓展参数
    - `funcGroup` integer — 功能分类: 1:普通功能 2:系统功能
    - `identifier` string, required — 标识符
    - `isCanSceneLinkage` integer — 是否可以场景联动
    - `isPassword` integer — 是否是密码类型,密码类型需要加掩码
    - `name` string — 功能名称
    - `order` integer — 排序
    - `productID` string — 产品id 只读
    - `recordMode` integer — 1(默认) 记录历史记录 2 只记录差异值 3 不记录历史记录
    - `required` integer — 是否必须 1:是 2:否
    - `tag` integer, required — 物模型标签 1:自定义 2:可选 3:必选 必选不可删除
    - `type` integer, required — 物模型类型 1:property属性 2:event事件 3:action行为
    - `userPerm` integer — 用户权限操作: 1:r(只读) 3:rw(可读可写)
  - `productID` string, required — 产品id

## Response `200`

A successful response.

- object
  - `code` integer
  - `msg` string

## Changes

- **2026-03-27** `b9582d0ab6af` — 1 breaking, 1 info
  - added required request body
  - added the media type `application/json` for the response with the status `200`
- **2025-03-14** `e87dbcac5d9e` — 2 breaking
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/unitedrhino/apis/things-api/changes/api/v1/things/product/schema/multi-create/post.md)

---

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