âŗī¸Token Body
Here you will see what are the fields to pass in the body while creating a guest token.
JSON body -
workspaceName (required string) - The name of the workspace for which you are creating the guest token.
clientId (required string) - The primary key of the client/organization in the workspace for which you are creating the guest token.
params (optional JSON object) - Additional things you want to apply for the client/organization.
expiryTime (optional time in milliseconds) - The time in which you want the token to be expired.
body -> params (optional JSON object) -
dashboard (optional JSON object) - if you don't want to pass the "dashboardId" prop dynamically in dbn-dashboard component then you can pass it here although if you pass dynamically also then the value passed in dbn-dashboard will override this value.
rlsSettings (optional array of JSON object) - if you want to apply any rls settings then here you can pass the "metricId" for which you want to apply the filter and "values" which is an object of filter name and filter value.
appFilters (optional array of JSON object) - if you want to apply metric-level filters with the app filter variant then here you can pass the "metricId" for which you want to apply the filter and "values" which is an object of filter name and value.
params -> dashboard (optional JSON object) -
id (required string) - the dashboard id which you can find on the dashboard page in the header below the dashboard name.
params -> rlsSettings (optional array of JSON object) -
metricId (required string) - the id of the metric you want to apply the rls filters which you can find on the metric page in the header below the metric name.
values (required JSON object) - the filters name and value pairs that you want to apply.
params -> appFilters (optional array of JSON object) -
metricId (required string) - the id of the metric you want to apply the rls filters which you can find on the metric page in the header below the metric name.
values (required JSON object) - the filters name and value pairs that you want to apply.
Last updated