更新项目区域
POST
/api/v1/system/area/info/update
iThings-apisvr/系统管理/区域管理
请求参数
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
string
必需
parentAreaID
string
必需
projectID
string
必需
areaName
string
项目区域名称
<= 100 字符
position
object
可选
desc
string
项目区域备注
<= 100 字符
useBy
string
用途
deviceCount
integer
区域及子区域的设备数量统计
isLeaf
integer
是否是叶子节点
areaImg
string
区域图片
isUpdateAreaImg
boolean
是否更新区域图片
示例
{
"projectID": "1764790777094926336",
"areaID": "1764800519347433472",
"parentAreaID": "0",
"areaName": "片省难员",
"desc": "in ipsum occaecat consect",
"position": {
"longitude": 82.62474,
"latitude": 51.66137
}
}
示例代码
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/area/info/update' \
--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 '{
"projectID": "1764790777094926336",
"areaID": "1764800519347433472",
"parentAreaID": "0",
"areaName": "片省难员",
"desc": "in ipsum occaecat consect",
"position": {
"longitude": 82.62474,
"latitude": 51.66137
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
示例
{
"code": 200,
"msg": "success"
}
🟠400请求有误

扫码加入 iThings微信交流群

