You can create a device type via the Bosch IoT Insights API.
Proceed as follows
- Open the Project Management Service APIs.
- Open Device Types: Access Device Types.
→ A list of requests is displayed. - Open the POST /v1/{project}/device-types request.
- In the Parameters pane, enter the project name in the project field.
In the deviceTypeDefinition field, paste the following code block and replace the device type value with a custom value:
{"type":"test-type","label":{"en":"Test Type"},"features":[{"definition":"insights:general","defaultName":"general","editable":true,"mandatory":true,"tracked":false},{"definition":"insights:details","defaultName":"details","editable":true,"mandatory":false,"tracked":false}],"icon":"rb-ic-devices","visible":true,"order":0}
- Click the Try it out! button to create the device type.
→ The device type is created.