I am new here. I need to learn how to use REST API in the automation rules. I never use the API

I need a user select one worklog in some issue and delete it. Is it possible using an automation rule?