文档
测试

后台添加模板

POST

请求参数

参数名
类型
描述
必填
template_name
模板名
必填
type
1目标 2习惯
必填
category_id
分类ID
必填
cover
file
封面
必填
duration
时间跨度 单位:天
必填
key_words
关键字 如: ['减脂','经营']
必填
keys
目标或习惯关键字列表,示例:[{'key_name':'key1','confident_index':2,'key_result':'减脂100斤'}]
必填
steps
type为1时的必传参数,示例:[{'step_name':'step1','duration':'4','execute_unit':[{‘exe_content’:'看完《资本论》','is_complete':'1'},{‘exe_content’:'能够背诵资本论','is_complete':'1'}]}]
必填
cron_type
习惯循环方式:DAY每天 WEEK每周 MONTH每月
必填
cron_tasks
计划内容:[{'day':1,'crontab_tasks':[{'is_complete':1,'task':'fd'},{'is_complete':1,'task':'gg'},{'is_complete':1,'task':'as'}]}]
必填
fee_type
0 免费 1 付费
必填
price
价格
必填
origin_price
原价
必填
year_vip_free
年卡免费 1免费 0不免费
必填
on_shelf
1 上架 0 未上架
必填