python-zabbix-utils icon indicating copy to clipboard operation
python-zabbix-utils copied to clipboard

history.clear bug

Open BBT-coder opened this issue 4 months ago • 0 comments

The Zabbix API documentation say I can pass the item id's for which history should be cleared like: "params": [ "10325", "13205" ], This does not work with api.history.clear(params=["10325", "13205"]) and gives the error zabbix_utils.exceptions.APIRequestError: Invalid params. Invalid parameter "/1": a number is expected.

Using V2.0.1 Doing a api.history.clear(params=[10325, 13205]) gives the same error.

Doing a api.history.clear(params=10325) does work........

BBT-coder avatar Oct 04 '24 19:10 BBT-coder