Creating public share link by API, occ, or programatically

I am using the occ command-line tool in a bash script to do some recurring tasks at my organization. I am looking for a method to generate public share links programmatically. Ideally, there might be a share command as part of occ that could work like this:

occ share [-kind link|user|group] [-sharewith target] path/to/resource.zip

Is there any existing method of accomplishing this?

https://doc.owncloud.org/server/10.0/developer_manual/core/ocs-share-api.html#create-a-new-share

1 Like

how did you do it?

any way of doing this without creating an all-access-admin-user?

Greetings Matt