REST API - doPurgeAudit
The table summarizes the REST API - doPurgeAudit.
Request
Format |
POST <baseurl>/audit/purge/start |
Query parameters |
|
Body | processTemplates element (mandatory): This is an array of process templates. You can specify the process templates to be considered for purging by specifying either their IDs or their names. You can combine both forms of template identification in the same request.
With either method of identification, each repetition specifies a process template. All data relating to eligible process instances of a specified template is deleted. Which instances are eligible for deletion depends on the setting of threshold. If neither form of template identifier is specified, the operation defaults to all templates.
Note that if a process includes sub-processes, you must specify only the main process. Specifying a sub-process name or template ID, either alone or together with the main process, may cause an error. |
Response
JSON | Returns a JSON representation of the content of a PurgeStatus element. |
XML | Returns the content of a PurgeStatus element (from the EventCollectorManagementService schema). |
Example
Request |
POST <baseurl>/audit/purge/start?requireallextendeddata=true |
Request body |
<ProcessTemplates> <processTemplateNameIdentifier> <processTemplateName>SystemActionTestProcess</processTemplateName> <version>1.0.0.20150714174226023</version> </processTemplateNameIdentifier> </ProcessTemplates> |
Response |
<?xml version="1.0" encoding="UTF-8"?> <xml-fragment> <statusMessage>50 instances matched! Purge operation [EC-PURGE-1373901337493] started successfully! Check BPM Logs for progress!</statusMessage> <status>PURGE_IN_PROGRESS</status> </xml-fragment> |
Copyright © Cloud Software Group, Inc. All rights reserved.