API How to Create a folder and Share it with a User or Group


I can create an User with this API command
$ curl -X POST http://admin:secret@example.com/ocs/v1.php/cloud/users -d userid=“Frank” -d password=“frankspassword” -d groups[]=“usersgroup”

Is this possible after this to command create a Folder for this User and Share it with an other User or Groups ?

Would be perfect in a script.

Thanks in advance