Skip to main content
POST
Management API 主机(api.scanova.io)上保存一个新的页面模板,使用您的原始 Management API 密钥进行身份验证。
string
必填
模板名称。空白或仅含空格的名称会被拒绝。
string
模板描述。
array
必填
页面的区块内容——可以是区块列表,也可以是包含 pages 键的字典。任何其他形状都会被拒绝。
integer
与此模板关联的主题 id。如果该主题不是系统主题,则必须属于您。
string
强调色,当关联主题无法实时解析出该值时作为后备。
string
预览背景色,与 accent_color 承担相同的后备角色。
slug 由服务器生成。创建后会异步生成缩略图——thumbnail_url 起始为 null,生成完成后会被填充。 如果 name 为空、blocks_json 格式错误,或 theme 既不是系统主题也不属于您,则返回 400

相关内容

授权

Authorization
string
header
必填

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

响应

Template created.