From fce084e8ee2adca8d0e3d2ad1de9b20286c1fe27 Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Tue, 5 Mar 2019 14:46:18 -0800 Subject: [PATCH] Clarify /api/vhost-limits/vhost/name PUT request Fixes #666 --- priv/www/api/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/priv/www/api/index.html b/priv/www/api/index.html index a971ef6a8..e4c44a84e 100644 --- a/priv/www/api/index.html +++ b/priv/www/api/index.html @@ -969,9 +969,11 @@

Reference

/api/vhost-limits/vhost/name - Set or delete per-vost limit for vhost with name. - Limits are set using a JSON document in the body: -
{"max-connections": 100, "max-queues": 200}
+ Set or delete per-vhost limit for vhost. The name URL path element + refers to the name of the limit (max-connections, max-queues). + Limits are set using a JSON document in the body:
{"value": 100}
. Example + request:
+
curl -4u 'guest:guest' -H 'content-type:application/json' -X PUT localhost:15672/api/vhost-limits/my-vhost/max-connections -d '{"value": 50}'