Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(plugins): pin the update-from-URL example URL

Yudhi Armyndharis29f0a10149cc
diff --git a/docs/07-api-collection.md b/docs/07-api-collection.md
index 11b4a3fec..8c4204132 100644
--- a/docs/07-api-collection.md
+++ b/docs/07-api-collection.md
@@ -1625,13 +1625,14 @@ curl -X PUT "$BASE/api/plugins/chat-flow/sessions" \
#### POST /api/plugins/:id/update
-Update an installed plugin in place from a URL.
+Update an installed plugin in place from a URL. The URL follows the same pin rule as `install-url`; the
+digest below is a placeholder for the SHA-256 of the `.zip`.
```bash
curl -X POST "$BASE/api/plugins/chat-flow/update" \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
- -d '{ "url": "https://example.com/plugins/chat-flow-1.1.0.zip" }'
+ -d '{ "url": "https://example.com/plugins/chat-flow-1.1.0.zip#sha256=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" }'
```
#### DELETE /api/plugins/:id