Writing a success date_time against selected records in a Data Store after Web API success

I have written a data into a CDT, then into a Data store (via smart service) and then a Web API is querying the database for some selected records. On the success of the API how do I write the success date time back into the data store against these records and not just as a single item ?

 Discussion posts and replies are publicly visible