How to update dom, refresh data after calling api update ticket without reloading the page

I’m using ticket_backgroud
Every time you click on a ticket it will call the API

Here is the code I processed

After the call is completed, I want it to be displayed like that, without having to reload the page