dashboard-controller
Assign the Dashboard to Public Customer (assignDashboardToPublicCustomer)
Assigns the dashboard to a special, auto-generated 'Public' Customer. Once assigned, unauthenticated users may browse the dashboard. This method is useful if you like to embed the dashboard on public web pages to be available for users that are not logged in. Be aware that making the dashboard public does not mean that it automatically makes all devices and assets you use in the dashboard to be public.Use assign Asset to Public Customer and assign Device to Public Customer for this purpose. Returns the Dashboard object.
Available for users with 'TENANT_ADMIN' authority.
post/api/customer/public/dashboard/{dashboardId}
Path parameters
dashboardIdstring required
A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Response
OK
Example response
{
"configuration": {},
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DASHBOARD"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"assignedCustomers": [
{
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
}
}
]
}