(AP Photo/Leo Correa)
The Australian Olympic delegation has been awarded the keys to Rio by the city's mayor following the athletes village debacle.
A near diplomatic incident - as Rio de Janeiro Mayor Eduardo Paes termed it - came to an end on Wednesday ahead of the Olympics.
The Australian delegation gave the mayor a tiny "boxing kangaroo" doll as the sign of a truce. It also said it's now happy with its rooms at Rio's Olympic Athletes Village.
The 700-member delegation refused to check in three days earlier because of water and gas leaks, electrical shorts, malfunctioning toilets and general filth.
The unfinished village, built at a cost of about $US1.5 billion ($A2 billion), marks the first organisational crisis of South America's first Olympics, which open in just over a week.
Attention now shifts to dozens of venues, which will be filling up in the next few days with thousands of athletes hoping to practice.
Problems here could make village problems seems small.
"It was almost a diplomatic thing," the mayor said, speaking to Australian officials and members of the men's field hockey team at the 31-building village.
Paes apologised and acknowledged Australia's "was the worst building."
"Australia was right," he said.
"It was not in good shape. That was a mistake of the organisation. What we have to do now is go ahead and organise it.
"They've got their building now, and I hope things go well from now on."
As his offering, Paes gave delegation head Kitty Chiller the keys to the city, and a doll representing the official mascot Vinicius.
Australian officials said about 50 athletes were living in the village on Wednesday accompanied by almost 100 additional staff members.
After battling leaks for a week, Australia complained openly on Sunday. Dozens of other delegations also flagged up problems about their rooms, with many calling in their own workmen to fix the problems.
The complaints led to hundreds of cleaners, plumbers, safety inspectors and electricians working 24-7 to resolve the issues.
Paes was asked four times about who would pay any bills run up by teams trying to fix their own problems. He walked away without answering, which Chiller also noted.
"He left immediately after that question," she said.
"We'll sort all that out afterwards."
Chiller promised to speak out again if things are not ready.
"Everything that we've ever said, and everything I will continue to say is about making sure that we have the best possible environment for our athletes," she said.
"And we'll stop at nothing to ensure that we get that. Whatever that takes."
A further 17 Australian athletes were due to arrive in Rio on Wednesday including track cyclist and opening ceremony flagbearer Anna Meares, as well as some divers, judokas and another shooter.
It will bring the total number of athletes in Brazil to 97.
About half of those are staying outside the village, with the sailors based at Marina de Gloria, the rugby sevens teams in camp in Portobello and the Matildas in Sao Paulo.
© AP 2016