Hi, I've been working with Metabase API for quite a while now. I am working on v47 (client hosted, can't upgrade).
I am attempting to update the cards in the dashboard, simply changing their size, but no effect is taking place. The request is failing. This is the payload I'm using as per the documentation:
{
"ordered_tabs": [],
"cards": [
{
"size_x": 24,
"dashboard_tab_id": null,
"series": [],
"action_id": null,
"col": 0,
"id": 1057,
"parameter_mappings": [],
"card_id": 9,
"visualization_settings": {},
"size_y": 4,
"row": 0
},
{
"id": 1058,
"card_id": 792,
"dashboard_tab_id": null,
"action_id": null,
"row": 4,
"col": 0,
"size_x": 24,
"size_y": 2,
"series": [],
"visualization_settings": {},
"parameter_mappings": []
}
]
}
This is copied exactly from inspecting the network tab in the payload, however, when I attempt it with the API, the logs return this error
[e0713e2f-a7ba-450b-8de4-e1b4364e5b59] 2024-08-22T12:07:46+02:00 DEBUG metabase.server.middleware.log PUT /api/dashboard/162/cards 400 4.5 ms (0 DB calls)
{:errors {:cards "value must be seq of maps in which ids are unique"},
:specific-errors {:cards ["invalid type, received: nil"]}}
The card IDs are unique, and I am not providing any nil values, so where is this error coming from?