This article shows how to update an ActiveMQ queue using the REST API.
Change ActiveMQ Queue
PATCH /activemq/queues/{nodeName}/{managerName}/{brokerName}/{queueName}
Update properties of an ActiveMQ queue.
Example Request
curl -X 'PATCH' \
'http://<hostname>/rest/v1/activemq/queues/CMACTIVEMQ/Activemq-server/DemoBroker/iss' \
-H 'accept: */*' \
-H 'Authorization: Basic QWRtaW46YWRtaW4=' \
-H 'Content-Type: application/json' \
-d '{ "wgsName": "MQM",
"nodeName": "CMACTIVEMQ",
"managerName": "Activemq-server",
"brokerName": "DemoBroker",
"queueName": "sample111"
}'Query Parameters
| Parameter | Type | Description |
jobDate |
int64 | Schedule job date (Unix Timestamp). |
jobTags |
string | Comma-separated job tags (used only with jobDate). |
validateAccessForUser |
string | Validate endpoint access for user. |
waitForRead |
boolean | Wait for cache update. |
Request Body
{
"wgsName": "MQM",
"nodeName": "CMACTIVEMQ",
"managerName": "Activemq-server",
"brokerName": "DemoBroker",
"queueName": "sample111",
}Response Codes
204– Object changed.304– Object not changed.*– Error response.
Response Headers
204 – Object changed.
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 date: Wed,24 Sep 2025 10:16:41 GMT server: Jetty(10.0.22) vary: Origin