Api tick and ref update