---
title: "生成批量分享设备二维码"
method: POST
path: "/api/v1/things/user/device/share/multi-create"
tags: ["things/user/device/share", "thingsUserDeviceShare"]
---

# 生成批量分享设备二维码

`POST /api/v1/things/user/device/share/multi-create`

## Request body

- UserDeviceShareMultiInfo
  - `accessPerm` object — 系统功能权限 2:读写权限 3读权限
  - `authType` integer — 授权类型:1:全部授权 2:部分授权
  - `createdTime` integer
  - `devices` DeviceCore[] — 批量设备信息
    - `deviceName` string, required — 设备名称
    - `productID` string, required — 产品ID
    - `productName` string
  - `expTime` integer — 到期时间
  - `schemaPerm` object — 普通功能权限 2:读写权限 3读权限
  - `useBy` string — 用途

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` UserDeviceShareMultiToken
    - `authExpireAt` integer
    - `createdTime` integer
    - `linkExpireAt` integer
    - `shareToken` string
  - `msg` string

## Changes

- **2026-06-11** `d9bde20b898b` — 3 info
  - added the optional property `data/authExpireAt` to the response with the `200` status
  - added the optional property `data/createdTime` to the response with the `200` status
  - added the optional property `data/linkExpireAt` to the response with the `200` status
- **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/user/device/share/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)
