API调用URL地址
http://<serverName>:<portNumber>/api/v3/requests/{request_id}/link_requests
其中{request_id}为需要删除链接的请求ID
示例:http://localhost:8080/api/v3/requests/86/link_requests
请求参数
方法:DELETE
请求参数:
参数名
|
值
|
位置
|
input_data
|
<JSON_String>
|
body
|
authtoken
|
<API Key>
|
header
|
输入示例
{
"link_requests":[
{
"linked_request":{
"id":"91"
}
}
]}
响应示例
{
"response_status": {
"status_code": 2000,
"messages": [
{
"status_code": 2000,
"type": "success",
"message": "请求链接已成功删除。"
}
],
"status": "success"
}
}
Postman示例
Python脚本示例
#Python version - 3.9
#需要安装requests模块
import requests
url = "http://localhost:8080/api/v3/requests/86/link_requests"
headers = {"authtoken":"9CE7BCBF-EACC-4E10-BE6C-D9284163B4DC"}
input_data = '''{
"link_requests": [
{
"linked_request": {
"id": "91"
}
}
]
}'''
data = {'input_data': input_data}
response = requests.delete(url,headers=headers,data=data,verify=False)
print(response.text)