Officers went to the scene in Quarrywood Avenue in the Barmulloch area of Glasgow at around 4.35am after a report that a firearm had been discharged.
The flat was empty but was damaged by the shot fired.
Police appealed for information about the incident.