BS-2570, implement repair api