Web API Reference Guide > Available API Methods > Monitor Methods > The monitorDeleteIssuesByPredefinedFilter Method

The monitorDeleteIssuesByPredefinedFilter Method

Delete monitor issues based on some filtering parameters Response returns the amount of issues that were deleted. Note though, that as this method only marks the issues for deletion, subsequent calls with the same parameters will return the same size of issues deleted rather than expected 0.

Modify an Issue's status code based on an Issue's Id and a status code.

Version: 1.3

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Response Format: 202 Accepted. For more information see Response Format.

Possible Action Specific Error Codes: This action has no specific error codes.

Example

Usage Example

Request (headers removed for the purpose of clarity)

POST /ZendServerManager/Api/monitorDeleteIssuesByPredefinedFilter

Content-type: application/x-www-form-urlencoded

filterId=1&limit=20&offset=0&order=date&direction=DESC

Response (not all headers are shown)

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>monitorDeleteIssuesByPredefinedFilter</method>

</requestData>

<responseData>

<szDeleted>3</szDeleted>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Monitor Methods