HTTP/HTTPS
Protocol
YesDev / Platform API / 更新模板
更新模板
API Url:http://pre.www.yesdev.cn/api/platform.php?s=Platform.Template_Template.UpdateTemplate
API Description: 更新模板
API Parameters
Parameter Name | Type | Is Required | Default | Note | Description |
---|---|---|---|---|---|
access_token | 字符串 | Optional | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
app_key | 字符串 | Optional | app_key,团队代码 | ||
sign | 字符串 | Optional | - | 动态签名,签名算法请联系我们技术客服获取 | |
id | 字符串 | Optional | - | id | |
module_type | 字符串 | Optional | - | 哪个模块模板 1项目 2任务 3需求 4问题 5邮件模板 | |
template_type | 字符串 | Optional | - | 类型再区分,模板类型10 文档偏好 20筛选器 30 工作台 | |
module_type_string | 字符串 | Optional | - | 模块字段分开前端区分 (如问题的bug 优化 故障 工单 咨询) | |
template_title | 字符串 | Optional | - | 模板标题 | |
template_content | 字符串 | Optional | - | 模板内容 | |
list_type | 枚举类型 | Optional | - | min: 1;range: need/problem | 列表类型 筛选器偏好,跟筛选器对齐 |
search_conditions | 数组seperated by , | Optional | - | min: 1 | 只传勾选的搜索条件配置,多个用英文逗号分割,注意顺序,至少要选择一项。例如:search_conditions=id,name |
need_fields | 数组seperated by , | Optional | - | min: 1 | 只传勾选的显示字段配置,多个用英文逗号分割,注意顺序,至少要选择一项。例如:search_conditions=id,name |
workbench_config_id | 字符串 | Optional | - | 工作台配置id,注意,根据排序好的顺序传 | |
template_id | 字符串 | Optional | - | 模板id | |
show_modules | 字符串 | Optional | - | 展示模块id |
Return Field
Response Result | Type | Description |
---|---|---|
ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
data | object/mixed | business data, decided by API implementation |
msg | string | message, usually error message |
Test Online
Parameter | Is Required | Value |
---|---|---|
service | Required | |
access_token | Optional | |
app_key | Optional | |
sign | Optional | |
id | Optional | |
module_type | Optional | |
template_type | Optional | |
module_type_string | Optional | |
template_title | Optional | |
template_content | Optional | |
list_type | Optional | |
search_conditions | Optional | |
need_fields | Optional | |
workbench_config_id | Optional | |
template_id | Optional | |
show_modules | Optional |
Client Request Demo
# 暂无示例,可添加示例文件:./src/view/docs/demos/Platform.Template_Template.UpdateTemplate.json
Error List
Error Status | Error Description |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
410 | 权限不足 |
500 | 表示服务端内部错误 |
Last generated at: 2025-08-03 17:30:18 联系我们开通接入OpenAPI