API endpoint for cloning?

I think this recent thread is similar?