Bosch IoT Insights

Creating a device type via API

You can create a device type via the Bosch IoT Insights API.

Proceed as follows

  1. Open the Project Management Service APIs.

  2. Open Device Types: Access Device Types.
    → A list of requests is displayed.

  3. Open the POST /v1/{project}/device-types request.

    1. In the Parameters pane, enter the project name in the project field.

    2. 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
      }
  4. Click the Try it out! button to create the device type.
    → The device type is created.