1. 围栏
rtls
  • REST API
    • 说明
    • 设置
      • 获取
      • 设置
    • 认证
      • 设置 Auth
      • 获取 Auth
      • 删除 Auth
      • 获取 JWT
      • 刷新 JWT
      • 重置密码
    • 文件
      • 获取文件
      • 设置文件
      • 删除文件
    • RTLS
      • 地图映射
        • 获取
        • 设置
      • 区域
        • 获取
        • 设置
      • 围栏
        • 获取
          GET
        • 设置
          PUT
      • 高度差分站
        • 获取
        • 设置
        • 上报传感数据
        • 获取传感数据
        • 获取传感数据数量
      • RSSI 锚点
        • 获取
        • 设置
        • 上报传感数据
      • 位置
        • 上报位置
        • 获取最新位置
        • 历史轨迹
        • 历史轨迹计数
      • 标签
        • 获取
    • 报警
      • 获取报警规则
      • 设置报警规则
      • 新增告警记录
      • 告警记录分页
      • 告警记录分页计数
      • 告警记录统计
      • 新增告警处理
      • 告警处理列表
      • 告警记录统计 - 未处理
      • 围栏切换记录分页
      • 区域切换记录分页
    • 数据
      • 数据库状态
      • 文件存储状态
  • 数据模型
    • UpdateResult
    • DeleteResult
    • Auth
    • AuthWithPua
    • HeightDatum
    • HeightDatumValue
    • RssiAnchor
    • RssiAnchorValue
    • Map
    • Area
    • Fence
    • Setting
    • AlarmRule
    • AlarmData
    • Individual
    • Collective
    • Sos
    • Battery
    • FenceInside
    • FenceOutside
    • FenceEnter
    • FenceExit
    • FenceStay
    • FenceLeave
    • FenceInside (count)
    • FenceOutside (count)
    • FenceCongestion
    • AreaCongestion
    • Custom
    • AlarmRecord
    • RecordBody
  1. 围栏

设置

PUT
/rtls/fences

请求参数

Body 参数application/json必填

示例
{
    "1": {
        "uid": 1,
        "data": [
            {
                "latitude": 22.610964884995617,
                "longitude": 113.85891555687247
            },
            {
                "latitude": 22.610831033470458,
                "longitude": 113.85902363569755
            },
            {
                "latitude": 22.610902490331025,
                "longitude": 113.85919066401608
            },
            {
                "latitude": 22.611000668972952,
                "longitude": 113.85916367683669
            }
        ],
        "heights": [
            -0.010772346004682073,
            0.008375206296038063
        ],
        "name": "F1",
        "points": [
            [
                -2382748.5902576204,
                5387403.932723626,
                2437005.05667394
            ],
            [
                -2382761.0649391054,
                5387404.666055725,
                2436991.38080682
            ],
            [
                -2382775.5373123554,
                5387394.932160153,
                2436998.6831980827
            ],
            [
                -2382771.302740018,
                5387392.217541931,
                2437008.713265739
            ]
        ]
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/rtls/fences' \
--header 'Content-Type: application/json' \
--data '{
    "1": {
        "uid": 1,
        "data": [
            {
                "latitude": 22.610964884995617,
                "longitude": 113.85891555687247
            },
            {
                "latitude": 22.610831033470458,
                "longitude": 113.85902363569755
            },
            {
                "latitude": 22.610902490331025,
                "longitude": 113.85919066401608
            },
            {
                "latitude": 22.611000668972952,
                "longitude": 113.85916367683669
            }
        ],
        "heights": [
            -0.010772346004682073,
            0.008375206296038063
        ],
        "name": "F1",
        "points": [
            [
                -2382748.5902576204,
                5387403.932723626,
                2437005.05667394
            ],
            [
                -2382761.0649391054,
                5387404.666055725,
                2436991.38080682
            ],
            [
                -2382775.5373123554,
                5387394.932160153,
                2436998.6831980827
            ],
            [
                -2382771.302740018,
                5387392.217541931,
                2437008.713265739
            ]
        ]
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "deleted": 0,
    "updated": 1,
    "created": 0
}
修改于 2026-07-18 17:05:22
上一页
获取
下一页
获取
Built with