更新数据

更新文件信息及标注结果

更新方式为覆盖方式。如传入参数且参数值不为空,则覆盖更新。

POST http://{{host}}/v1/dataset/{{datasetid}}/refloc/{{ref_id}}/update

或使用fid:

POST http://{{host}}/v1/dataset/{{datasetid}}/fidloc/{{fid}}/update

请求参数

请求样例:

POST http://{{host}}/v1/dataset/{{dataset_id}}/fidloc/{{fid}}/update 
Content-Type: application/json
T-key: {{T-key}}

{
    "ref_id":"ref_8",
    "name":"文件名-1",
    "frame_id":"frame_0001",
    "sensor":"camera_0",
    "meta":{"k1":"v1","city":"beijing"},
    "anotations":[
        {
            "label": "car",
            "instance":"instance-id",
            "type":"box2d",
            "attrs":{"k":"v"},
            "data": {
                "x":21.31,
                "y":33.22,
                "width":210,
                "height":122
            }
        }
    ]
}


Response:
{
  "code": "",
  "msg": "",
  "data": {}
}

Last updated