Allow users just have upload permission with script

I want to use this function for data backup, but I don’t want users to be able to view , edit or delete the previously uploaded parts.
It seems to be possible to set permissions by sharing the link, but the official does not mention that if you want to use a script to do it every day.Any one no khow to use share link with no username&password to upload by script or other ways to do it?

it looks one can share a folder for upload-only without password. did you try if this works for your scenario?


can i do it with powershell (for daily)?

Take a look at Share API may be this helps…