集合中数据相关操作

1. 描述

对集合中的personId进行增、删、查操作

2. URL

https://cosmos-cv-api.immomo.com/querySet

3. 请求方式

POST

4. 参数

名称 类型 是否必传 说明 示例
timestamp int true 当前时间戳(秒) 1522222222
sign string true 签名,生成算法 md5 (appid + appkey + timestamp)
appId string true 业务方appId
setId string true 人脸集合ID
personIds stirng true 通过注册获得的personIds ["id1","id2"]
type int true 1-添加至集合,2-从集合中删除,3-判断是否在集合内) 1

5. 返回数据

{
    "code": 10000,
    "message": "操作成功",
    "data": {
        "results": [{
           "result": true
        }, {
           "result": false,
           "ec": 10026
        }],
        "used": 45000,
        "capacity": 500000,
        "ec": 10023
    }
}

6. 服务状态码(code)

码值 含义
10000 操作成功
10001 服务错误
10002 参数错误
10003 appId校验失败

7. 业务错误码(ec)

码值 含义
10012 personId不存在
10023 无效的setId
10024 集合容量已满
10025 personId已存在集合内
10026 personId不存在集合内
@Copyright © cosmos 2019 all right reserved,powered by Gitbook修订时间: 2019-07-01 16:15:25

results matching ""

    No results matching ""