modified update record  call in rest adapter