updateTemplatePrompt(data: UpdateTemplatePromptParams)

版本要求:
@tuya-miniapp/cloud-api≥1.7.0

描述

修改自定义模板

参数

参数类型必填说明
是请求参数

返回值

类型:Promise<null>
UpdateTemplatePromptResult

示例代码

请求示例

import { updateTemplatePrompt } from '@tuya-miniapp/cloud-api';

updateTemplatePrompt({
  templateId: 'tpl_custom_1',
  templateName: '我的模板-改',
  prompt: '提炼行动项与风险',
  icon: 'icon/xxx.png',
})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('修改自定义模板失败:', error);
  });

返回示例

null