Generate public link from API and turn on enable sharing


To allow our team to generate public links without asking us admins every time, we are using your API to generate them. When we do so the, UUID is generated and the links work, but noticed that the Enable Sharing button is off, is there a API endpoint or json param that I did not see in the docs to enable sharing from the API before generating the uuid? why the generation is allowed and working well if the enable sharing button if off?


Hi @lollococce
You can enable sharing with this endpoint (key enable-public-sharing value true):
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.