How to replace default logic update button with custome logic?

Hi guys, currently I am struggling when I want change the logic of update button with my logic. How to try to change it? I want to change it with call REST API.
I am using Strapi v4, 4.1.3

Can you guys helps me?