这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.

删除全局宏

描述

object usermacro.deleteglobal(array globalMacroIds)

此方法用于删除全局宏.

此方法只有 Super admin(超级管理员) 用户可用.可以在用户角色设置中撤销调用该方法的权限.更多信息请查看 User roles.

参数

(array) 需要删除的全局宏ID.

返回值

(object) 返回包含 globalmacroids 属性(其中包含被删除全局宏的ID)的对象.

示例

批量删除全局宏

删除两个全局宏.

请求:

{
           "jsonrpc": "2.0",
           "method": "usermacro.deleteglobal",
           "params": [
               "32",
               "11"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }
Copy
✔ Copied

返回:

{
           "jsonrpc": "2.0",
           "result": {
               "globalmacroids": [
                   "32",
                   "11"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

来源

CUserMacro::deleteGlobal() in ui/include/classes/api/services/CUserMacro.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.