创建工单
开发中
POST
/api/v1/system/ops/work-order/create
请求参数
Header 参数
iThings-token
string
可选
默认值:
{{iThings-token}}
iThings-project-id
string
可选
默认值:
1786838173980422144
iThings-app-code
string
可选
默认值:
{{iThings-app-code}}
iThings-user-role
string
可选
默认值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
areaID
integer <int64>
项目区域id
type
enum<string>
可选
枚举值:
[deviceMaintenance]
params
object
参数 json格式
issueDesc
string
问题描述
示例
{
"areaID": "72",
"type": "deviceMaintenance",
"params": {
"productID": "xxx",
"deviceName": "xxx",
"userName": "xxx@qq.com",
"deviceAlias": "fff",
"areaNamePath": "3楼-前台-会议室"
},
"issueDesc": "设备不正常"
}
示例代码
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/system/ops/work-order/create' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"areaID": "72",
"type": "deviceMaintenance",
"params": {
"productID":"xxx",
"deviceName":"xxx",
"userName":"xxx@qq.com",
"deviceAlias":"fff",
"areaNamePath":"3楼-前台-会议室"
},
"issueDesc": "设备不正常"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
示例
{
"code": 0,
"msg": "success"
}
🟢200成功返回

扫码加入 iThings微信交流群

