Hi Ajay,
Thanks for getting back to me & the info you sent over.
So I'm trying the following method now (JavaScript)
await api.call('Add', {
typeName: 'Device',
entity: {
Comment: "Testing",
DeviceType: "CustomDevice",
Id: "f4037aba-4d03-4482-bfe7-f73bd2f3b052",
TimeZoneId: "Europe/London",
ProductId: 10032 // from https://developers.geotab.com/myGeotab/guides/usingCustomTelematicsDevices#automating-tasks
}
});
Without the ProductId the request is rejected with a validation error so I have used 10032 as suggested in the docs.
But now I see the error:
Error: ArgumentException: DeviceType Geotab.Checkmate.ObjectModel.Device is not consistent with the Product ID 10032. The required type is Geotab.Checkmate.ObjectModel.CustomDevice.
And If I try to use typeName: 'CustomDevice' , I get back to the original error:
Cannot find bridge for Geotab.Checkmate.ObjectModel.CustomDevice
Many thanks,
Allan