- things
- device
- auth
- auth5
- gateway
- info
- interact
- msg
- profile
- module
- version
- schema
- edge
- group
- group
- ota
- product
- protocol
- rule
- schema
- slot
- user
获取设备模块版本列表
POST
/api/v1/things/device/version/read
things/device/module/versionthingsDeviceModuleVersion
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
id
integer <int64>
可选
productID
string
产品id 只读
productName
string
可选
moduleCode
integer <int64>
可选
示例
{
"id": 0,
"productID": "string",
"productName": "string",
"moduleCode": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/device/version/read' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (DeviceModuleVersion)
可选
id
integer <int64>
可选
productID
string
产品id 只读
productName
string
可选
moduleCode
integer <int64>
可选
version
string
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"id": 0,
"productID": "string",
"productName": "string",
"moduleCode": 0,
"version": "string"
}
}
修改于 2025-03-25 08:05:06