`/admin/invites/:id/resend` is a POST API route, but the JS SDK's `resend` method was sending a GET request.
prepublishOnly