Add update repository endpoint