Thing Type
Thing type is used to group the property sets that describes a thing.
For example, you can define a thing type Automobiles. You can create different things, for example, different automobiles identified by their license plates or vehicle identification numbers. You can associate properties to a property set type. You can assign a property set type to a thing type as property sets.
Resource Path:http://<server address>[:<port number>][/path]/ThingConfiguration
Example for a base URI in a cloud foundry environment: https://config-thing-sap.cfapps.eu10.hana.ondemand.com/ThingConfiguration
Operations
CRUD Operations
| HTTP Method | Operation | URI | Scope |
|---|---|---|---|
| POST | Create a Thing Type | /ThingConfiguration/<version>/Packages('<package name>')/ThingTypes | <thingconf>.c |
| GET | Read Details of a Thing Type | /ThingConfiguration/<version>/ThingTypes('<thing type name>') | <thingconf>.r |
| GET | Read all Thing Types | /ThingConfiguration/<version>/ThingTypes | <thingconf>.r |
| GET | Read Thing Types of a Package | /ThingConfiguration/<version>/Packages('package name')/ThingTypes | <thingconf>.r |
| PATCH | Update a Thing Type | /ThingConfiguration/<version>/ThingTypes('<thing type name>') | <thingconf>.u |
| DELETE | Delete a Thing Type | /ThingConfiguration/v1/ThingTypes('<thing type name>') | <thingconf>.d |
Thing Type Object Properties
| Property | Type | Mandatory | Maximum Length | Description |
|---|---|---|---|---|
| Name | String | Yes | 81 | Unique name of the thing type |
| Descriptions | Array of description objects | No | - | Description of the thing type for each language with the corresponding ISO language code |
| PropertySets | Array of property set objects | No | - | Array of property sets that belong to the thing type |
| ThingTypeCategory | String | No | Fixed |
Category of thing type Only the following values are supported:
|
| CopySource | String | No | 81 |
Name of the thing type You can use this field to specify the already existing thing type name, structure of which is copied to the new thing type to be created. |
Property Set Object Properties
| Property | Type | Mandatory | Maximum Length | Description |
|---|---|---|---|---|
| Name | String | Yes | 50 | Unique identifier of the property (that belongs to the propertySetType) defined in a thing type |
| PropertySetType | String | Yes | 81 | Name of the property set type referred |
| Descriptions | Array | No | - |
Description of the property set for each language with the corresponding ISO language code |
Description Object Properties
| Property | Data Type | Maximum Length | Description |
|---|---|---|---|
| LanguageCode | String | 2 | ISO code of the language of the object description |
| Description | String | 60 | Description of the object |