Wait. You just want to make a user a moderator? You just need to update the moderator field in the user record. It’s not really a group. That’s the problem.
You’d do this with the user API not the group API.
Group editing is not how you make someone a moderator. Look at the admin page for that user, press the Grant Moderation button, and watch the f12 console to see what requests were sent.