if you request it then they check you have the miles to do it and put you on a list which then process according to status as kchika says. If it isn't booked full then they'll start confirming Diamonds etc before check-in closes, but if it's tight or over-booked then they'll wait until they close the check in before confirming anyone.