Now that there is an API call for Merge Users, how to call it?

@mpemburn did you have any success with this?

I’m migrating some mailing lists to a discourse instance. Since many people used different emails the transfer creates many staged users per real person. I would like to automate the merging of users via the API.