A video of a team of New Zealand cops busting out a rhythm in an elevator is gaining attention online.

The video, posted on the NZ Police Recruitment Facebook page with the hashtag #ElevatorCops, shows police officers entering an elevator and starting a beat by banging on the walls. As more officers enter, they join in, adding to the music.

Police senior social media adviser Simon Flanagan said the video was part of a campaign they were doing called Beyond the Blue, which aimed to show diversity and different interests police had.

"We didn't actually do it in a police station, it was shot in an unused elevator in a hospital in Auckland," Flanagan said.

Advertisement

He estimated the video took 1-2 hours to shoot.

NZ Police - #ElevatorCops

Not your typical beat cops #ElevatorCops

Posted by NZ Police Recruitment on Monday, 3 October 2016

So far the video on Facebook has received at least 1500 likes and more than 300 shares.

"One of our core values is obviously valuing diversity. It's just really to show people that underneath the uniform we're human and just as diverse as anyone else," Flanagan said.

Everyone involved in making the video was "really enthusiastic". Flanagan said it brought together frontline staff and those who did more behind the scenes work.

NZ Police went viral earlier this year with the Running Man dance video, which received more than 9.5 million views.