puter.perms.requestManageApps()Request write (manage) access to the user's apps. If the user has already granted this permission the user will not be prompted and true will be returned. If the user grants permission true will be returned. If the user does not allow access false will be returned.
puter.perms.requestManageApps()
None
A Promise that resolves to:
true - If permission is grantedfalse - If permission is denied<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<button id="request-apps">Request Apps Manage Access</button>
<script>
document.getElementById('request-apps').addEventListener('click', async () => {
const granted = await puter.perms.requestManageApps();
if (granted) {
puter.print('Apps manage access granted');
// Now you can create, update, or delete apps
// Example: await puter.apps.create({ ... });
} else {
puter.print('Apps manage access denied');
}
});
</script>
</body>
</html>