Datasource: Save Token after Receiving

Hello Community,

I make my own Datasource, based on the SIMPLE JSON Datasource. At the endpoint “/” it is tested if the connection was successful. There I get a token from my API, which I want to save. This should happen in the code when I click in Grafana on save Datasource. It should work automatically without configuration in Grafana itself.

It is an AngularJS plugin and does not know how to save the data. Is there anything that works exactly like the panelDefaults for a panel?

Thanks for your attention. I hope for a quick answer :wink: