Create new collection using code

Hi,
I need to create a new collection when some event is occurring.
Any ideas?

Thanks

I think this will not be possible.
I did not see that this has been done by code, before.
But if you find a way/solution, let me know.

This is not possible but will will a great feature to have for developers. Make sure to put in a request for this under the Wishlist section: https://www.wix.com/corvid/wishlist

just did. hope to find another solution in the meanwhile.