- iThings-apisvr
- iThings API 定义方式
- 物联网相关接口
- 系统管理
- 用户管理
- 角色管理
- 通用功能
- 日志管理
- 项目管理
- 区域管理
- 应用管理
- 任务管理
- 租户管理
- 模块管理
- 字典管理
- 授权管理
- 数据管理
- 运营维护
- 通知管理
- 系统管理old
- 大屏管理
- 大数据
申请用户区域权限
POST
/api/v1/system/user/self/area/apply/create
iThings-apisvr/系统管理new/用户管理/用户资源
请求参数
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
区域id
authType
integer
必需
示例
{
"areaID": "string",
"authType": 0
}
示例代码
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/user/self/area/apply/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": "string",
"authType": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
data
object
必需
list
array[object (项目区域信息) {17}]
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"areaID": "string",
"parentAreaID": "string",
"projectID": "string",
"areaName": "string",
"position": {},
"desc": "string",
"areaIDPath": [
"string"
],
"areaNamePath": [
"string"
],
"lowerLevelCount": 0,
"useBy": "string",
"childrenAreaIDs": [
0
],
"createdTime": "current_timestamp()",
"deviceCount": 0,
"isLeaf": 0,
"areaImg": "string",
"isUpdateAreaImg": true,
"children": [
{}
]
}
]
}
}

扫码加入 iThings微信交流群

