Setting goals in gauge question through API

Hello!
Is there a form to change the goals of an existing gauge question though the API? I've read the documentation but didn't found it, so I think the answer is no, but wanted to confirm that.

I know #6514 is already opened to solve this issue using another question, but I was wondering if there is a workaround using API. Thanks!

Hi @renankw
Yes, it would be possible to do that - you would update the entire question's visualization settings, just like you were modifying the question.

The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

For reference: https://www.metabase.com/learn/developing-applications/advanced-metabase/metabase-api.html

@flamber, thanks for answering me so promptly! I'll do that.