widget-type-controller
Get Widget Type Details (getWidgetTypeById)
Get the Widget Type Details based on the provided Widget Type Id. Widget Type Details extend Widget Type and add image and description properties. Those properties are useful to edit the Widget Type but they are not required for Dashboard rendering.
Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.
get/api/widgetType/{widgetTypeId}
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
widgetTypeIdstring required
A string value representing the widget type id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Query parameters
includeResourcesboolean
Export used resources and replace resource links with resource metadata
Response
OK
Example response
{
"deprecated": true,
"descriptor": {},
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "WIDGET_TYPE"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"scada": true
}Changes
No recorded changes to this operation across all 2 revisions of this API.