How to: Create an Entity Type

For information about prerequisites, see Integrate with Entities.

To create an Entity Type, call the Create Entity Type endpoint and pass a request body similar to the following:

{
   "name":{
      "plural":"vehicles2",
      "singular":"vehicle2"
   },
   "category":[
      {
         "name":"four-wheeler",
         "description":"four-wheeler vehicle",
         "subCategory":[
            "bus",
            "car",
            "truck"
         ]
      }
   ],
   "attributes":[
      {
         "name":"manufacturer",
         "dataType":"string",
         "indexed":false
        
      }
   ],
   "isStateMachineEnabled":true,
     "events": [
    "string"
  ]
}

In the above payload, we have created an Entity type with the plural name vehicles. This Entity type has a category called four-wheeler and three sub-categories. The payload also has core attributes defined.