api - added new functionality of getting record and updating record