Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #16367: audit_log: Deprecate 'delete' method and replace it for 'archive'

Component REST API
Title audit_log: Deprecate 'delete' method and replace it for 'archive'
Date Feb 9, 2024
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.4.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.3.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

Since the DELETE method actually archives the audit_log entries, this endpoint is replaced by domain-types/audit_log/actions/archive/invoke

The DELETE endpoint is deprecated and will be removed on version 2.4.0.

In order to update their scripts, users should replace curl -x DELETE http://host/site/api/1.0/domain-types/audit_log/collections/all

with curl -x POST http://host/site/api/1.0/domain-types/audit_log/actions/archive/invoke

To the list of all Werks