trigger.report.delete

The trigger.report.delete command is used to delete a trigger report.

TR50 Request

To delete a single report:


{

  "cmd": {

    "command": "trigger.report.delete",

    "params": {

      "id": "574f4ad0681fdc24bdfe7240"

    }

  }

TR50 Request

To delete a set of reports:


{

  "cmd": {

    "command": "trigger.report.delete",

    "params": {

      "id": [

        "574f4ad0681fdc24bdfe7240",

        "54bdfe724074f4ad0681fdc2",

      ]

    }

  }

}

TR50 Request

To delete all reports for a trigger:


{

   "cmd": {

    "command": "trigger.report.delete",

    "params": {

      "triggerId": "524bdfe724084f4ad0681fdc"

    }

  }

}

Request Parameters

Name

Type

Required

Description

id

Mixed

 

The unique identifier of the report to delete. This parameter can be specified as a single report identifier, or an array of report identifiers.

triggerId

String

The unique identifier of the trigger for which all trigger reports will be deleted.

TR50 Response

If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.


{
  "cmd": {
    "success": true,
    "params": {
    "count": 1          
    }
  }
}

Response Parameters

Name

Type

Description

count

String

The number of trigger reports deleted.