更新项目区域
POST
/api/v1/system/area/info/update
iThings-apisvr/系统管理/区域管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
{{iThings-token}}
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
object {0}
示例
{
"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-token;' \
--header 'iThings-project-id: 1764806234122309632{{iThings-token}}' \
--header 'iThings-project-id;' \
--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微信交流群

