The RESTful way is usually a PUT to the resource URL (e.g. PUT /api/hosts/foo.example.com) to update or replace it.  If you're just going to regenerate an OTP, then a second route could be used I guess, e.g. POST /api/hosts/foo.example.com/generate_otp.