This article shows how to reset statistics of an ActiveMQ queue using the REST API.
Reset Queue Statistics
POST /activemq/queues/{nodeName}/{managerName}/{brokerName}/{queueName}/reset-statistics
Reset queue statistics.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/queues/CMACTIVEMQ/Activemq-server/DemoBroker/AABBCC/reset-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate |
integer | Schedule job date (Unix Timestamp). |
jobTags |
string | Job tags (used only with jobDate). |
validateAccessForUser |
string | Validate access for user. |
Response Codes
201– Object created.304– Action failed.*– Error response.
Response Header
201 – Object created.
access-control-allow-credentials: true
access-control-allow-origin: http://<hostname>:8019
content-length: 0
date: Thu,25 Sep 2025 07:47:14 GMT
server: Jetty(10.0.22)
vary: Origin
Reference Articles
Using the REST API using the Navigator demo system
Performing REST API operations using the Swagger UI