I want to retrive all modules from api to enable it or disable it but i don’t found any API for it
Hello,
Here are the methods for interacting with modules: ONLYOFFICE Api Documentation - security
And here you can learn which module corresponds to which id: https://github.com/ONLYOFFICE/CommunityServer/blob/master/web/core/ASC.Web.Core/WebItemManager.cs#L63
Hello Dmitriiv, Thanks for your reply.
I see these APIs, but i don’t see API to get all modules and there informations like
/api/2.0/settings/security/getModules. And to have response like :
{
"count": 3,
"status": 0,
"statusCode": 200,
"response": [
{
"productId": "00000000-0000-0000-0000-000000000000",
"productName": "PROJECTS",
"enable":"true"
},
{
"productId": "11111111-1111-1111-1111-111111111111",
"productName": "CRM",
"enable":"true"
},,
{
"productId": "22222222-2222-2222-2222-222222222222",
"productName": "MAIL",
"enable":"true"
}]
}
No, unfortunately, there is no way to achieve the desired result. There are only the methods that are presented in the documentation.
1 Like
Thank you for your assistance