Quickstart
This page shows you how to start with API-based and advanced mode dashboard creation in mediarithmics.
Last updated
Was this helpful?
This page shows you how to start with API-based and advanced mode dashboard creation in mediarithmics.
Last updated
Was this helpful?
You can manage charts using and . Manipulating dashboards by API and in advanced mode can be useful in some advanced integrations, but will take longer.
Run your query and save it as a technical query. Note the ID of the query.
In the computing console, go to dashboards and add/edit a dashboard
Choose a name and save your dashboard.
Switch to the Advanced tab.
Edit the JSON
See the object for a quick reference.
In the computing console, go to dashboards and add/edit a dashboard
Add or edit a chart and go to the Advanced tab
Edit the JSON and preview your changes.
POST
https://api.mediarithmics.com/v1/datamarts/:datamartId/queries
Register an OTQL query in the platform
We will create two OTQL queries for this tutorial. The first one counts the user points in the datamart, the second one lists the devices they use.
POST
https://api.mediarithmics.com/v1/dashboards
Here is a sample body payload for a home dashboard with all the important properties
PUT
https://api.mediarithmics.com/v1/dashboards/:id/content?organisation_id=:organisation_id
Here is a sample body payload for a content using the queries we previously created.
Go to your datamart's home page, and your dashboard is now displayed with the two charts we created !
Run your query and save it as a technical query. Note the ID of the query.
See the object for a quick reference.
This quickstart guide uses the authentication method. Choose and configure your own authentication method. For more information, see .
Your dashboard could use or to retrieve data. We will use both in this tutorial, and OTQL queries need to be registered using the endpoint.
You first create a object to reference your dashboard and define where it is visible.
You can now upload content in your dashboard using the object.