trigger.update
This method allows to update existing triggers.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.
(object/array)
Trigger properties to be updated.
The triggerid
property must be defined for each trigger, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the the method accepts the following parameters.
(object)
Returns an object containing the IDs of the updated triggers under the triggerids
property.
Enabling a trigger
Enable a trigger, that is, set its status to “0”.
:
Response:
{
"jsonrpc": "2.0",
"result": {
"13938"
},
"id": 1
}
Replacing triggers tags
Replace tags for trigger.
Response:
{
"jsonrpc": "2.0",
"result": {
"triggerids": [
"13938"
]
}
Replacing dependencies
Replace dependencies for trigger.
Response:
{
"jsonrpc": "2.0",
"result": {
"triggerids": [
"22713"
]
},
"id": 1
}
CTrigger::update() in ui/include/classes/api/services/CTrigger.php.