- 页面
- 用户
- 角色和权限
- 上传文件和图片
- 支付
- 搜索
- 帮助中心
- 模板
- 后台接口
更新模板
测试中
POST
/api/amis/updateTemplate
请求参数
Body 参数application/json
object {0}
示例
{
"id": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
},
"configs": [
{
"route": "/1",
"id": "6408a9d93565307a662f63f9/1",
"templateId": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
},
{
"route": "/test2",
"id": "6408a9d93565307a662f63f9/test2",
"templateId": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
}
],
"category": "test",
"hot": 0,
"name": "test1先生",
"introduction": "工程师团队",
"labels": [
"商务",
"领先"
],
"maker": "odin offical",
"downloads": 0,
"photos": [
"https://my.alfred.edu/zoom/_images/foster-lake.jpg",
"https://www.pixelstalk.net/wp-content/uploads/2016/07/Nature-wallpapers-hd-backgroud-1080p.jpg"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://47.92.1.39:8005/api/amis/updateTemplate' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
},
"configs": [
{
"route": "/1",
"id": "6408a9d93565307a662f63f9/1",
"templateId": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
},
{
"route": "/test2",
"id": "6408a9d93565307a662f63f9/test2",
"templateId": "6408a9d93565307a662f63f9",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
}
],
"category": "test",
"hot": 0,
"name": "test1先生",
"introduction": "工程师团队",
"labels": [
"商务",
"领先"
],
"maker": "odin offical",
"downloads": 0,
"photos": [
"https://my.alfred.edu/zoom/_images/foster-lake.jpg",
"https://www.pixelstalk.net/wp-content/uploads/2016/07/Nature-wallpapers-hd-backgroud-1080p.jpg"
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"success": true,
"errCode": null,
"errMessage": null
}
修改于 2023-03-08 15:40:44