How can I add a text card to an existing dashboard? please help

Hi, I am using v47 of metabase and I cannot upgrade as it is client hosted. I've already posted some trouble with the PUT /api/dashboard/:id/cards endpoint, and I can't seem to get it to work in v47 (It was fine before). I am using the browser inspection tool to identify the proper format, and still it is not working for me.

I also noticed that this endpoint gets deprecated in the latest version, and that when clicking the put request in the network payload and open it in a new tab, I get "API endpoint does not exist." Could it be that this endpoint is now unavailable for even older versions of metabase?

Can you show me please how to go about adding a text card to an existing dashboard using this endpoint? An example that works for you would help a lot. I have been at this all day and it's getting very frustrating. Thank you

Yeah that should be correct:

http://localhost:3000/api/dashboard/14

With a payload like this


{"description":null,"archived":false,"view_count":7,"collection_position":null,"dashcards":[{"id":100,"card_id":119,"dashboard_tab_id":14,"action_id":null,"row":0,"col":0,"size_x":24,"size_y":9,"series":[],"visualization_settings":{"table.columns":[{"name":"ZIP","enabled":true},{"name":"ADDRESS","enabled":true},{"name":"ID","enabled":true},{"name":"NAME","enabled":true},{"name":"CITY","enabled":true},{"name":"LONGITUDE","enabled":true},{"name":"STATE","enabled":true},{"name":"SOURCE","enabled":true},{"name":"BIRTH_DATE","enabled":true},{"name":"LATITUDE","enabled":true},{"name":"CREATED_AT","enabled":true}],"table.pivot_column":"SOURCE","table.cell_column":"SUBTOTAL","column_settings":{"[\"ref\",[\"field\",54,{\"base-type\":\"type/Text\"}]]":{"column_title":"Zip Test","click_behavior":{"type":"crossfilter","parameterMapping":{"97482dc0":{"source":{"type":"column","id":"ZIP","name":"Zip"},"target":{"type":"parameter","id":"97482dc0"},"id":"97482dc0"}}}},"[\"ref\",[\"field\",46,{\"base-type\":\"type/BigInteger\"}]]":{"click_behavior":{"type":"link","linkType":"dashboard","targetId":14,"parameterMapping":{},"tabId":15}}}},"parameter_mappings":[{"parameter_id":"49a56d84","card_id":119,"target":["dimension",["field",49,{"base-type":"type/Date"}]]},{"parameter_id":"97482dc0","card_id":119,"target":["dimension",["field",47,{"base-type":"type/Text"}]]}]},{"id":122,"card_id":119,"dashboard_tab_id":15,"action_id":null,"row":0,"col":0,"size_x":12,"size_y":9,"series":[],"visualization_settings":{},"parameter_mappings":[{"parameter_id":"49a56d84","card_id":119,"target":["dimension",["field",49,{"base-type":"type/Date"}]]},{"parameter_id":"97482dc0","card_id":119,"target":["dimension",["field",47,{"base-type":"type/Text"}]]}]},{"id":-1,"card_id":null,"dashboard_tab_id":14,"row":9,"col":0,"size_x":12,"size_y":3,"visualization_settings":{"virtual_card":{"name":null,"dataset_query":{},"display":"text","visualization_settings":{},"archived":false}},"parameter_mappings":[]}],"param_values":null,"initially_published_at":null,"can_write":true,"tabs":[{"id":14,"name":"Tab 1"},{"id":15,"name":"Tab 2"}],"enable_embedding":false,"collection_id":null,"show_in_getting_started":false,"name":"Dash 1","width":"fixed","caveats":null,"collection_authority_level":null,"creator_id":1,"updated_at":"2024-08-13T15:24:14.060853Z","made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"last_used_param_values":{"97482dc0":["Lightweight Wool Plate","tony"],"49a56d84":"past6months"},"position":null,"entity_id":"NQdotpowh3CIvsxlXCMry","param_fields":{"47":{"semantic_type":"type/Name","table_id":3,"name":"NAME","has_field_values":"search","fk_target_field_id":null,"dimensions":[],"id":47,"target":null,"display_name":"Name","name_field":null,"base_type":"type/Text"},"49":{"semantic_type":null,"table_id":3,"name":"BIRTH_DATE","has_field_values":"none","fk_target_field_id":null,"dimensions":[],"id":49,"target":null,"display_name":"Birth Date","name_field":null,"base_type":"type/DatShow more

Can you share the exactcalls you are running please