- system
- access
- app
- common
- data
- dict
- log
- module
- ops
- role
- tenant
- user
- notify
- area
- project
- slot
- dept
- job
- open
- data
更新项目
POST
/api/v1/system/project/info/update
system/project/infosystemProjectInfo
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
createdTime
string
创建时间(只读)
projectID
string
项目id(只读)
projectName
string
项目名称(读写)
adminUserID
string
可选
position
object (Point)
可选
longitude
number <double>
经度
<= 180
latitude
number <double>
纬度
<= 90
address
string
可选
projectImg
string
可选
isSysCreated
integer <int64>
可选
isUpdateProjectImg
boolean
可选
desc
string
项目备注(读写)
tags
object
自定义标签
areaCount
integer <int64>
可选
userCount
integer <int64>
可选
deviceCount
integer <int64>
可选
ppsm
integer <int64>
可选
area
number <float>
可选
adminUser
object (UserCore)
可选
userID
string
用户id
userName
string
用户名(唯一)
email
string
邮箱
phone
string
手机号
lastIP
string
最后登录ip
regIP
string
注册ip
nickName
string
用户的昵称
headImg
string
用户头像
tags
object
标签对象
createdTime
string
创建时间
areas
array[object (AreaInfo) {21}]
可选
createdTime
string
创建时间(只读)
projectID
string
项目id(只读)
areaID
string
可选
parentAreaID
string
可选
areaName
string
可选
position
object (Point)
可选
desc
string
可选
tags
object
自定义标签
lowerLevelCount
integer <int64>
可选
deviceCount
integer <int64>
可选
groupCount
integer <int64>
可选
useBy
string
可选
isLeaf
integer <int64>
可选
isSysCreated
integer <int64>
可选
areaIDPath
string
可选
areaNamePath
string
(只读)
areaImg
string
可选
isUpdateAreaImg
boolean
可选
configFile
string
区域配置文件
isUpdateConfigFile
boolean
可选
children
array[object (AreaInfo) {21}]
可选
示例
{
"createdTime": "string",
"projectID": "string",
"projectName": "string",
"adminUserID": "string",
"position": {
"longitude": 180,
"latitude": 90
},
"address": "string",
"projectImg": "string",
"isSysCreated": 0,
"isUpdateProjectImg": true,
"desc": "string",
"tags": {},
"areaCount": 0,
"userCount": 0,
"deviceCount": 0,
"ppsm": 0,
"area": 0,
"adminUser": {
"userID": "string",
"userName": "string",
"email": "string",
"phone": "string",
"lastIP": "string",
"regIP": "string",
"nickName": "string",
"headImg": "string",
"tags": {},
"createdTime": "string"
},
"areas": [
{
"createdTime": "string",
"projectID": "string",
"areaID": "string",
"parentAreaID": "string",
"areaName": "string",
"position": {
"longitude": 180,
"latitude": 90
},
"desc": "string",
"tags": {},
"lowerLevelCount": 0,
"deviceCount": 0,
"groupCount": 0,
"useBy": "string",
"isLeaf": 0,
"isSysCreated": 0,
"areaIDPath": "string",
"areaNamePath": "string",
"areaImg": "string",
"isUpdateAreaImg": true,
"configFile": "string",
"isUpdateConfigFile": true,
"children": [
{}
]
}
]
}
示例代码
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/project/info/update' \
--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
返回的消息
示例
{
"code": "200",
"msg": "string"
}
修改于 2025-03-25 09:32:22