Terminate workflows with an API call

Nevermind, I found the answer I was looking for in here:

Regards.