That could be a security risk. It’s the account’s private space, so it’s the account’s decision which files or folders will be accessible from the outside to anyone.
In addition, the account could remove the shared link.
Thanks for you answer, I thought about using Apache or similar, but it would require the developing or configuring any folders management web system.
fodler-code - is generated by my ecommerce platform, it’s almost the same as the code provided by Own Cloud. It may be 10 digits long or I can combine it with addition code and it will be like 20 digits and letters long. I don’t see a lot of security issues here.
I just don’t want to create links manually, I want to put the files to right folder and using folder_code generated automatically has access to it. That’s it.
Not sure what you mean?
Like I said, try it out. One thing I always recommend is to create an app password in the personal security settings tab.
Obviously the user creating the shares through the API needs access to the files through ownCloud (you can’t create shares for other users for files you don’t own).