trigger.deletedependencies
Description说明
object trigger.deletedependencies(string/array triggers)
This method allows to delete all trigger dependencies from the given triggers该方法允许从指定的触发器中删除所有的触发依赖关系.
Parameters参数
(string/array)
Triggers to delete the trigger dependencies from.(string / array)
从中删除触发器依赖关系的触发器.
Return values返回值
(object)
Returns an object containing the IDs of the affected triggers under the triggerids
property.(object)
返回一个包含'triggerids''属性下的受影响触发器的ID的对象
Examples范例
Deleting dependencies from multiple triggers从多个触发器中删除依赖关系
Delete all dependencies from two triggers从两个触发器中删除所有依赖关系.
Request请求:
- {
- "jsonrpc": "2.0",
- "method": "trigger.deleteDependencies",
- "params": [
- {
- "triggerid": "14544"
- },
- {
- "triggerid": "14545"
- }
- ],
- "auth": "038e1d7b1735c6a5436ee9eae095879e",
- "id": 1
- }
Response响应:
- {
- "jsonrpc": "2.0",
- "result": {
- "triggerids": [
- "14544",
- "14545"
- ]
- },
- "id": 1
- }
See also参考
Source来源
CTrigger::deleteDependencies() in frontends/php/include/classes/api/services/CTrigger.php.