Share folders to files

Good afternoon.
I have an api in which I create folders with images, files and so on. Well, I need to either create them in general or share them with all nextcloud users.
Thank you very much in advance

Hello.

Can you please be a bit more specific about what you need?

You have an API (as part of the NC app or external?) that you want to use. It should somehow store it share files (new files on the nextclout or in the NC existing files into an external API?).

At least for me, the text and the description is not explicit enough to really help you. Maybe you describe the use case a bit more what should happen. Also best tell us, where you run into problems.

Chris

A little more information would be nice. For example, if your API directly copies the data to any Nextcloud directory, then you need to make it known with sudo -u www-data /path/to/nextcloud occ files:scan --all. It would be better if your API uses the WebDAV interface of Nextcloud. In this case, Nextcloud also recognises the files. Nextcloud WebDAV documentation. Of course, you must then also share the folder correctly within Nextcloud (to users, to groups, public share, …).