知眸核心版开放平台
  1. 应用
知眸核心版开放平台
  • 核心版开放接口
    • 部署文档
    • 更新记录
    • 接口说明
    • 接口错误码
    • 授权
      • 授权接口
    • 应用
      • 获取应用列表
        GET
      • 下发应用
        POST
      • 修改应用配置
        PUT
      • 删除应用
        DELETE
    • 任务
      • 创建分析任务
      • 配置分析任务
      • 上报任务图片
      • 上报任务飞行状态数据
      • 关闭分析任务
      • 获取分析任务列表
      • 指定规则AI直播推流
      • 关闭AI直播推流
    • 回调
      • Mqtt任务数据订阅
      • 消息回调接口
    • 报告
      • 导出任务报告
      • 图片比对报告
    • 优化
      • 申请任务效果优化
  1. 应用

修改应用配置

PUT
{{url}}/api/app/{app_id}
修改系统中应用的基础配置

请求参数

Path 参数

Header 参数

Body 参数application/json

示例
{
    "name": "string",
    "description": "string",
    "rules": [
        {
            "rule_id": "string",
            "name": "string",
            "interval": 0,
            "disable": true,
            "class_area": {
                "color": "string",
                "point_distance": {
                    "numeric_type": 0,
                    "min": 0,
                    "max": 0
                }
            },
            "classes": [
                {
                    "class_id": "string",
                    "name": "string",
                    "color": "string",
                    "threshold": 0,
                    "min_pixel": 0,
                    "max_pixel": 0
                }
            ],
            "counter": {
                "numeric_type": 0,
                "distance": 0,
                "min_count": 0,
                "max_count": 0,
                "class_counts": [
                    {
                        "class_id": "string",
                        "min_count": 0,
                        "max_count": 0
                    }
                ],
                "group_counts": [
                    {
                        "class_ids": [
                            "string"
                        ],
                        "min_count": 0,
                        "max_count": 0
                    }
                ]
            }
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '/api/app/' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "description": "string",
    "rules": [
        {
            "rule_id": "string",
            "name": "string",
            "interval": 0,
            "disable": true,
            "class_area": {
                "color": "string",
                "point_distance": {
                    "numeric_type": 0,
                    "min": 0,
                    "max": 0
                }
            },
            "classes": [
                {
                    "class_id": "string",
                    "name": "string",
                    "color": "string",
                    "threshold": 0,
                    "min_pixel": 0,
                    "max_pixel": 0
                }
            ],
            "counter": {
                "numeric_type": 0,
                "distance": 0,
                "min_count": 0,
                "max_count": 0,
                "class_counts": [
                    {
                        "class_id": "string",
                        "min_count": 0,
                        "max_count": 0
                    }
                ],
                "group_counts": [
                    {
                        "class_ids": [
                            "string"
                        ],
                        "min_count": 0,
                        "max_count": 0
                    }
                ]
            }
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "ok",
    "data": {
        "app_id": "a0b35f001"
    }
}
修改于 2026-01-09 05:07:17
上一页
下发应用
下一页
删除应用
Built with