I have never disc assembled a hydro disc brake before. They are Shimano deore/ slx. I want to use the cable and ends from the deore and switch them to the slx lever and caliper. Quick Google suggested there was two rubber o rings?
I assume both ends just unscrew?
But I think if they’re o rings either side of the banjo connector from a system that was working with no leaks I think they’ll be ok to use again. If it’s a brass olive I always replace those with new ones.
The official line is you're meant to change the olives (crushable brass washers) every time you disconnect a hose. In reality people often don't bother and a one-time swap ought to be fine. Your risk of course.
Make sure the old and new callipers both use the same style fitting (banjo vs straight).
I think you're talking about the banjo fitting at the caliper end, reusing the two o rings should be fine if they look OK, reusing olives at the other end is not officially right but generally works fine in practice.
Trying to think which o rings you mean.. are you talking about the olive?