1. 应用
知眸开放平台
  • 部署文档
  • 接口错误码
  • 更新记录
  • 授权
    • 授权接口
      POST
  • 应用
    • 获取应用列表
      GET
    • 更新应用配置
      PUT
  • 任务
    • 开启任务
      POST
    • 获取任务列表
      GET
    • 结束任务
      DELETE
    • 更新任务配置
      PUT
    • 上传任务图片
      POST
    • 获取指定应用AI视频
      POST
    • 关闭指定应用AI视频
      DELETE
  • 回调
    • Mqtt任务数据订阅
    • 消息回调接口
      POST
  • 流媒体
    • 获取视频流
      POST
    • 释放视频流
      DELETE
  • 与核心版接口改动说明
    • 核心版卸载
    • 授权模块
    • 应用模块
    • 任务模块
    • 回调
  1. 应用

更新应用配置

PUT
/api/zapk/{zapk_id}/app/{app_id}
责任人:erick

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数

Body 参数application/json必填

示例
{
    "name": "string",
    "rule": {
        "interval": 0,
        "class_area": {
            "color": "string"
        },
        "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
                }
            ]
        }
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/zapk//app/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "string",
    "rule": {
        "interval": 0,
        "class_area": {
            "color": "string"
        },
        "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
                }
            ]
        }
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "msg": "string",
    "data": {
        "zapk_id": "string",
        "app_id": "string"
    }
}
修改于 2026-08-06 01:59:54
上一页
获取应用列表
下一页
开启任务
Built with