]> git.proxmox.com Git - pve-docs.git/blobdiff - api-viewer/PVEAPI.js
include allowtoken info in api-viewer
[pve-docs.git] / api-viewer / PVEAPI.js
index 24161612dcf8780254d13c2a7bda32ff00fd990d..53bc36c4e105142a9b8d796204abb09e51579480 100644 (file)
@@ -354,6 +354,9 @@ Ext.onReady(function() {
                        permhtml += "Unknown systax!";
                    }
                }
+               if (!info.allowtoken) {
+                   permhtml += "<br />This API endpoint is not available for API tokens."
+               }
 
                sections.push({
                    title: 'Required permissions',