Add record update/create api