Change ownership through the API?

No I’ve not done that yet. I know how to do it, but I don’t have time just this second. I’ll post here if I get around to it and discover the answer =)