Creating folder for specific users and saving their files in that particular folder using API

Is it possible to send the code to create the folder