性能测试 CODEARTS PERFTEST-修改任务(旧版):请求示例

时间:2024-04-10 11:26:42

请求示例

修改id为1的任务,任务名字修改为taskName。

/v1/{project_id}/tasks/1

{
  "id" : 1,
  "name" : "taskName",
  "description" : "",
  "project_id" : 1,
  "run_status" : 2,
  "run_type" : 0,
  "task_run_info" : {
    "id" : 0,
    "run_type" : 0
  },
  "case_list" : [ ],
  "operate_mode" : 2,
  "bench_concurrent" : 100,
  "related_temp_running_data" : [ {
    "task_run_info_id" : 325,
    "related_temp_running_id" : 350,
    "temp_id" : 0,
    "temp_name" : "asdf"
  } ]
}
support.huaweicloud.com/api-cpts/UpdateTask.html