Thai police on Saturday said a foreign man detained over last month's deadly Bangkok attack was the main yellow-shirted suspect seen on CCTV leaving a rucksack at the shrine moments before the blast.

Earlier authorities said it was unlikely that either of the two men held over the August 17 blast, which left 20 dead, were the bomber in what has been an often confusing and contradictory police investigation.

But on Saturday national police spokesman Prawut Thavornsiri said further probing had revealed the first arrested suspect, a man police identified as Adem Karadag and whose nationality remains unconfirmed, was the bomber.

"It is confirmed that Adem is the man in the yellow shirt based on CCTV footage, eyewitness accounts and his own confession," Prawut said.

"After he placed the bomb at the shrine he called a motorbike taxi and changed his shirt at a restroom in (nearby) Lumpini Park" before travelling to the flat where he was arrested at the end of August.

Karadag's lawyer told AFP on Saturday that he was denied access to his client earlier this week by officials at the military barracks in Bangkok where he is being detained because the suspect was "sick".

Chuchart Kanphai added that he didn't believe his client -- who he says is called Bilal Mohammed and was not in the country at the time of the attack -- had confessed.

The suspect now faces up to eight charges including premeditated murder, Prawut said.

On Saturday afternoon dozens of local and international media waited at the Erawan shrine in downtown Bangkok where Karadag was due to undergo a reenactment of his alleged role in the crime -- a standard Thai police procedure.


Motive unclear

The unprecedented attack in the heart of Bangkok's bustling downtown district last month stunned the nation and dealt a fresh blow to Thailand's reputation as a tourist haven.

The majority of the blast's fatalities were Chinese visitors, who believe prayers at the shrine bring good fortune. More than 100 other people were left injured.

The motive for the bombing remains unclear but this month Thailand's police chief linked the attack to China's Uighur minority for the first time, after weeks of speculation over their role.

Somyot Poompanmoung blamed the blast on a gang of people-smugglers motivated by revenge for a crackdown on their lucrative trade, including the transfer of Uighurs.

That motive has been widely dismissed by security experts who instead have pointed to Thailand's forced deportation of 109 Uighurs to China in July, a move that ignited anger in Turkey where nationalist hardliners see the minority as part of a global Turkic-speaking family.

Mostly Muslim Uighurs have long accused Beijing of religious and cultural repression in China's far western Xinjiang region, with hundreds of refugees believed to have fled in recent years, often heading to Turkey via Southeast Asia.

Thai police arrested Karadag in a flat on the outskirts of Bangkok late last month saying he was in possession of bomb-making equipment and dozens of fake Turkish passports.

The other man is custody has been identified as Yusufu Mieraili, who was seized with a Chinese passport that police believe is real. It notes Xinjiang as his birthplace.

Karadag's lawyer has previously said his client was born in Xinjiang's capital, Urumqi, but moved to Turkey in 2004 where he received Turkish nationality and found work as a truck driver with his brother.

He entered Thailand on August 21, four days after the bomb blast, with the aim of finding work in Malaysia, the lawyer has said.