The midtown bar where an actress and her model pal say they were brutally beaten during a weekend brawl, must hang on to video footage of the incident, a judge ruled Wednesday.

Jennifer Agostini, 43, and swimsuit-model pal Prendinellys “Brenda” Garcia, 47, filed a Manhattan Supreme Court petition against rooftop bar Sky Room claiming they were jumped by a group of 10 to 15 people, including bouncers, on their way out early Sunday morning.

During the melee, the attackers allegedly yelled, “white motherf—ers,” “dirty white b—-es” and “f–k those white b—-es and their money,” the court papers said.

The women were seeking the bar to preserve surveillance video to aid an investigation into the incident.

Sky Room is “restrained and enjoined from destroying videotape of the lobby area at 330 West 40th Street … from 2:30 a.m. until 4:30 a.m. on November 24, 2019” and any other records related to the fight, Justice Debra James wrote in her order.

The judge set a hearing date for Dec. 19 to hear arguments on the issue, but in the meantime Sky Room must guard the video and related records.

“I am very relieved because I want to show the whole world what really did happen and the video will prove it,” said Agostini — who is set to begin filming show “Brooklyn Ties” in the spring. “I want to find out who attacked me through the video and I want to show the security [guards’] negligence because they were apart of my assault.

“I’m still very hurt. I have been feeling very dizzy and I’m going back to the concussion center and I need plastic surgery on my eye,” Agostini said. “I don’t think any human being should suffer what I went through and what Brenda Garcia went through.”

Sky Room spokesman Mike Paul said the venue is reviewing the footage.

“I can also tell you the information and allegations shared thus far are NOT accurate and are completely misleading and on Monday all will see the truth and nothing but the truth. More soon,” he said.