Example 2 – Create multiple things using thing template
The following request payload creates multiple things for the specified thing type. In addition, based on the thing template specified, property data will be created for the thing.
{
"_thingType": "core.automobiles:ABCXSeries",
"_thingTemplate": "core.automobiles:ABCXSeriesTemp",
"_objectGroup": "EFE8B81D89194CFDBA936722EE27053B",
"things": [
{
"_externalId": "ABCXCar-extid",
"_alternateId": "ABCXCar-altid",
"_name": "ABCXCar",
"_description": {
"en": "ABC Car of X Series"
},
"_location": "029611A5D3B64815B4DA404B72DDD16F",
"_customer": "3C4E1C7A1E984309A608623C2425DA0D"
},
{
"_externalId": "ABCX1Car-extid",
"_alternateId": " ABCX1Car-altid",
"_name": "ABCX1Car",
"_description": {
"en": "ABC Car of X1 Series"
},
"_location": "029611A5D3B64815B4DA404B72DDD16F",
"_customer": "3C4E1C7A1E984309A608623C2425DA0D"
},
{
"_externalId": "ABCX2Car-extid",
"_alternateId": "ABCX2Car-altid",
"_name": "ABCX2Car",
"_description": {
"en": "ABC Car of X2 Series"
},
"_location": "029611A5D3B64815B4DA404B72DDD16F",
"_customer": "3C4E1C7A1E984309A608623C2425DA0D"
}
]
}