Folder /data permission

I have update my nextcloud to version 24.
but when I update permission to data folder 750 I get error
I searched up and down and can’t find what is real permission for folder /data and files under that folder and also other folders under nextcloud root folder. file .httaccess cant have 750 permission.
I also have for confi.php 750 and for folder app and all unter it to 750
I don’t want to add more permission that i is required for security reasons.
chown apache:apache is for all files and folders under /data and under /aps
So is there a list for a folders and subfolders and files permissions for nextcloud?

sudo -u apache php occ maintenance:repair --include-expensive

In Folder.php line 164:

Could not create folder

and this is error from web site when I enable debug.

ID zahteve: YpDkc4CX6Z9wOxFzo9YZQAAAAJg
Vrsta: OCP\Files\NotPermittedException
Koda: 0
Sporočilo: Could not create folder
Datoteka: /var/www/html/nextcloud/lib/private/Files/Node/Folder.php
Vrstica: 164

Sledenje povezav

#0 /var/www/html/nextcloud/lib/private/Files/AppData/AppData.php(156): OC\Files\Node\Folder->newFolder()
#1 /var/www/html/nextcloud/lib/private/Template/IconsCacher.php(83): OC\Files\AppData\AppData->newFolder()
#2 [internal function]: OC\Template\IconsCacher->__construct()
#3 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): ReflectionClass->newInstanceArgs()
#4 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): OC\AppFramework\Utility\SimpleContainer->buildClass()
#5 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(133): OC\AppFramework\Utility\SimpleContainer->resolve()
#6 /var/www/html/nextcloud/lib/private/ServerContainer.php(161): OC\AppFramework\Utility\SimpleContainer->query()
#7 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(89): OC\ServerContainer->query()
#8 [internal function]: OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}()
#9 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): array_map()
#10 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): OC\AppFramework\Utility\SimpleContainer->buildClass()
#11 /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(133): OC\AppFramework\Utility\SimpleContainer->resolve()
#12 /var/www/html/nextcloud/lib/private/ServerContainer.php(161): OC\AppFramework\Utility\SimpleContainer->query()
#13 /var/www/html/nextcloud/lib/private/TemplateLayout.php(330): OC\ServerContainer->query()
#14 /var/www/html/nextcloud/lib/private/TemplateLayout.php(250): OC\TemplateLayout::findStylesheetFiles()
#15 /var/www/html/nextcloud/lib/private/legacy/OC_Template.php(185): OC\TemplateLayout->__construct()
#16 /var/www/html/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php(204): OC_Template->fetchPage()
#17 /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(178): OCP\AppFramework\Http\TemplateResponse->render()
#18 /var/www/html/nextcloud/lib/private/AppFramework/App.php(172): OC\AppFramework\Http\Dispatcher->dispatch()
#19 /var/www/html/nextcloud/lib/private/Route/Router.php(298): OC\AppFramework\App::main()
#20 /var/www/html/nextcloud/lib/base.php(1023): OC\Route\Router->match()
#21 /var/www/html/nextcloud/index.php(36): OC::handleRequest()
#22 {main}