deletePanelAgentCustomRole(params: DeletePanelAgentCustomRoleParams)

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

描述

删除自定义角色。

参数

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

返回值

类型:Promise<boolean>
DeletePanelAgentCustomRoleResult(字段含义见类型定义与 minituya 返回参数)

示例代码

请求示例

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

const params = {
  devId: 'your_device_id',
  roleId: 'role_custom_12345',
};

deletePanelAgentCustomRole(params)
  .then(result => {
    console.log('删除结果:', result);
  })
  .catch(error => {
    console.error('删除自定义角色失败:', error);
  });

返回示例

true