Add data inside table using API

how i can insert data using API call if the data is inside a table

sample as below

 

Are you using the REST API or the JavaScript API?