修改事务
功能介绍
修改事务
调试
您可以在API Explorer中调试该接口。
URI
PUT /v1/{project_id}/templates/{template_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目id 最小长度:0 最大长度:64 |
template_id |
是 |
Integer |
事务id 最小值:0 最大值:2147483647 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
id |
是 |
Integer |
id 最小值:0 最大值:2147483647 |
project_id |
是 |
Integer |
project_id 最小值:0 最大值:2147483647 |
name |
是 |
String |
name 最小长度:1 最大长度:42 |
temp_type |
否 |
Integer |
temp_type 最小值:0 最大值:2147483647 |
description |
否 |
String |
description 最小长度:0 最大长度:1024 |
for_loop_params |
否 |
Array of objects |
for_loop_params |
enable_pre |
否 |
Boolean |
enable_pre |
contents |
否 |
Array of TempContentInfo objects |
contents |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
content_id |
否 |
Integer |
content_id 最小值:0 最大值:2147483647 |
content |
否 |
Array of Content objects |
content |
index |
否 |
Integer |
index 最小值:0 最大值:2147483647 |
data |
否 |
Object |
data |
data_type |
否 |
Integer |
data_type 最小值:0 最大值:2147483647 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
content_type |
否 |
Integer |
content_type 最小值:0 最大值:2147483647 |
content |
否 |
ContentInfo object |
content |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
body_type |
否 |
Integer |
body_type 最小值:0 最大值:2147483647 |
bodys |
否 |
Array of objects |
bodys |
check_end_length |
否 |
String |
check_end_length 最小长度:0 最大长度:40960 |
check_end_str |
否 |
String |
check_end_str 最小长度:0 最大长度:40960 |
check_end_type |
否 |
String |
check_end_type 最小长度:0 最大长度:40960 |
connect_timeout |
否 |
Integer |
connect_timeout 最小值:0 最大值:2147483647 |
connect_type |
否 |
Integer |
connect_type 最小值:0 最大值:2147483647 |
headers |
否 |
Array of ContentHeader objects |
headers |
http_version |
否 |
String |
http_version 最小长度:0 最大长度:1024 |
method |
否 |
String |
method 最小长度:0 最大长度:1024 |
name |
否 |
String |
name 最小长度:0 最大长度:1024 |
protocol_type |
否 |
Integer |
protocol_type 最小值:0 最大值:2147483647 |
return_timeout |
否 |
Integer |
return_timeout 最小值:0 最大值:2147483647 |
return_timeout_param |
否 |
String |
return_timeout_param 最小长度:0 最大长度:40960 |
url |
否 |
String |
url 最小长度:0 最大长度:40960 |
响应参数
无
请求示例
修改事务demo
/v1/projectId/templates/templateId { "id" : 1, "project_id" : 1, "name" : "testTemp", "temp_type" : 0, "update_time" : "2021-08-23T19:37:22.803973+08:00", "description" : "", "contents" : [ ], "for_loop_params" : [ ], "enable_pre" : false }
响应示例
无
状态码
状态码 |
描述 |
---|---|
204 |
success |
501 |
unknown error |
错误码
请参见错误码。
