As Kmct states it’s on sector basis . I have done this in DOH at lounge but had a 4 hour plus connection time they said they would not process upgrade request until 2 hrs before departure and I had to go back at t-2hrs where they had processed the upgrade and issued me with new BP . Obviously if flight is oversold you may be lucky with an op up - good luck and report back if you can