- 设备管理
- 告警中心
- 通知中心
- 数据转发
- 规则引擎
- 系统管理
- 登录
- 注册
- 用户
- 分组
- 菜单
- 角色
- 字典
- 文件
- 系统
- 分组
- 应用管理
- SCADA组态服务
- 现场管理
- 设备任务
编辑现场基本信息
开发中
POST
/api/site/modify
请求参数
Header 参数
Authentication
string
必需
示例值:
{{token}}
Body 参数application/json
id
string
必需
name
string
可选
description
string
可选
photo
string
可选
config
object
可选
dept
boolean
可选
file
boolean
可选
site
boolean
可选
alarm
boolean
可选
device
boolean
可选
sensor
boolean
可选
product
boolean
可选
示例
{
"id": "string",
"name": "string",
"description": "string",
"photo": "string",
"config": {
"dept": true,
"file": true,
"site": true,
"alarm": true,
"device": true,
"sensor": true,
"product": true
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'ssiot.cc/api/site/modify' \
--header 'Authentication: 在用户管理中创建或通过login接口获取' \
--header 'Authentication;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"name": "string",
"description": "string",
"photo": "string",
"config": {
"dept": true,
"file": true,
"site": true,
"alarm": true,
"device": true,
"sensor": true,
"product": true
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-09-06 08:29:00