Endpoint URL Changes
-
v1
-
v2
Parameter Adjustments
In API v1, tokens were generated using theclientId
along with workspaceName
and datasourceName
.
In API v2, this has been simplified by introducing a dataApp
, so you only need to pass the clientId
and dataAppName
. The main change is that v2 replaces the separate workspace and datasource parameters with a single dataApp reference.
-
v1 example request body:
-
v2 example request body:
Note: In both v1 and v2, the authorization parameter works the same way. The only difference is that in v1 you used the API token from global settings, while in v2 you must use the API token generated within the dataApp. This ensures that authorization is scoped specifically to the dataApp.
Permissions
- In v1, we used to set permissions in the workspace settings for creating metric, updating metric, deleting metric etc.
- In v2, all these permission needs to be enabled in the specific dataApp itself.
Create Metric
-
In v1, we used to just enable the create metric option in workspace settings and chose the power mode option.
-
In v2, you first create a **datamart **from the same datasource you previously used in v1. Then, when enabling permissions like create metric, you reference that datamart within the dataApp settings.
Migration & Token Compatibility
- Both v1 and v2 tokens will continue to work with the same dashboard ID.
- However, note that settings applied using v1 tokens will not apply when using v2 tokens, and vice versa.
- Each version’s settings are independent, even though the tokens can coexist.