Metabase API error when using an sql question

Hello,
I want to copy and create a dashboard with an existing SQL question using metabase API.

I do GET then POST and the PUT with a dashboard having one question defined with SQL query
I have this error as the output of the PUT request :
'via': [{'type': 'java.lang.IllegalArgumentException',
'message': 'contains? not supported on type: java.lang.String',
'at': ['clojure.lang.RT', 'contains', 'RT.java', 853]}],

When I do exactly the same with a dashboard having a native question (no SQL query used) it is working fine.
Any tips to solve this issue ?

Did you check the Network Tab form the developer tools when you're doing it via the UI? So you can get the same exact request including the parameters used

Yes I found the issue.

When this metadata is defined I have an error linked to the created_at column. When the list is empty no tabs. It's working well. Any idea how to fix this type mismatch ?

"tabs": [
{
"id": 73,
"dashboard_id": 61,
"name": "Tab 1",
"position": 0,
"entity_id": "hF9pkIFiqeCyO",
"created_at": "2024-12-27T14:01:17.304538Z",
"updated_at": "2024-12-27T14:01:17.304538Z"
}
],