删除诊断任务记录
curl --request DELETE \
--url https://bptest.mapleai.cc/api/open/runs/{run_id}/record \
--header 'Authorization: Bearer <token>'import requests
url = "https://bptest.mapleai.cc/api/open/runs/{run_id}/record"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://bptest.mapleai.cc/api/open/runs/{run_id}/record', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 0,
"message": "操作成功",
"data": {},
"timestamp": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}开放接口 / Open Runs
删除诊断任务记录
DELETE
/
api
/
open
/
runs
/
{run_id}
/
record
删除诊断任务记录
curl --request DELETE \
--url https://bptest.mapleai.cc/api/open/runs/{run_id}/record \
--header 'Authorization: Bearer <token>'import requests
url = "https://bptest.mapleai.cc/api/open/runs/{run_id}/record"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://bptest.mapleai.cc/api/open/runs/{run_id}/record', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 0,
"message": "操作成功",
"data": {},
"timestamp": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.