POST api/Sensor/PreviewImportUnits
No documentation available.
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{ "PreviewUnits": [ null, { "ID": 1, "IMEINumber": "sample string 2", "DateOfRegistration": "2025-04-03T19:05:16.720408+02:00", "SerialNumber": "sample string 4", "LastUpdate": "2025-04-03T19:05:16.720408+02:00", "SimNumber": "sample string 6", "RegistrationNumber": "sample string 7", "DeviceSubType": 1, "DeviceVendor": null, "S2SenderId": null, "SimSerialNumber": 0, "FWVersion": 0.0, "SWVersion": 0.0, "IMSINumber": 0, "BatchNumber": 0, "ManufacturingDate": "0001-01-01T00:00:00" }, { "ID": 1, "IMEINumber": "sample string 2", "DateOfRegistration": "2025-04-03T19:05:16.720408+02:00", "SerialNumber": "sample string 4", "LastUpdate": "2025-04-03T19:05:16.720408+02:00", "SimNumber": "sample string 6", "RegistrationNumber": "sample string 7", "DeviceSubType": 1, "DeviceVendor": null, "S2SenderId": null, "SimSerialNumber": 0, "FWVersion": 0.0, "SWVersion": 0.0, "IMSINumber": 0, "BatchNumber": 0, "ManufacturingDate": "0001-01-01T00:00:00" } ], "ErrorCode": 1, "UniqueFilename": "sample string 2", "Success": true, "ErrorMessage": "sample string 4", "MenuAccessData": { "HasAccessToMap": true, "HasAccessToVehicle": true, "HasAccessToVehicleAdministration": true, "HasAccessToDriver": true, "HasAccessToPOI": true, "HasAccessToReports": true, "HasAccessToSettings": true, "HasAccessToTrips": true, "HasAccessToTranslations": true, "HasAccessToDashboard": true, "HasAccessToLogBook": true, "HasAccessToGroup": true, "HasAccessToTemplate": true, "HasAccessToUnit": true, "HasAccessToUser": true, "HasAccessToTicket": true, "HasAccessToContract": true, "HasAccessToSIM": true, "HasAccessToCommand": true, "HasAccessToUnitProfile": true, "HasAccessToProfileTrigger": true, "HasAccessToScript": true, "HasAccessToTriggerSchedule": true }, "StatusCode": 5, "ComponentFilterIds": [ 1, 2, 3 ] }
text/html
Sample:
{"PreviewUnits":[null,{"ID":1,"IMEINumber":"sample string 2","DateOfRegistration":"2025-04-03T19:05:16.720408+02:00","SerialNumber":"sample string 4","LastUpdate":"2025-04-03T19:05:16.720408+02:00","SimNumber":"sample string 6","RegistrationNumber":"sample string 7","DeviceSubType":1,"DeviceVendor":null,"S2SenderId":null,"SimSerialNumber":0,"FWVersion":0.0,"SWVersion":0.0,"IMSINumber":0,"BatchNumber":0,"ManufacturingDate":"0001-01-01T00:00:00"},{"ID":1,"IMEINumber":"sample string 2","DateOfRegistration":"2025-04-03T19:05:16.720408+02:00","SerialNumber":"sample string 4","LastUpdate":"2025-04-03T19:05:16.720408+02:00","SimNumber":"sample string 6","RegistrationNumber":"sample string 7","DeviceSubType":1,"DeviceVendor":null,"S2SenderId":null,"SimSerialNumber":0,"FWVersion":0.0,"SWVersion":0.0,"IMSINumber":0,"BatchNumber":0,"ManufacturingDate":"0001-01-01T00:00:00"}],"ErrorCode":1,"UniqueFilename":"sample string 2","Success":true,"ErrorMessage":"sample string 4","MenuAccessData":{"HasAccessToMap":true,"HasAccessToVehicle":true,"HasAccessToVehicleAdministration":true,"HasAccessToDriver":true,"HasAccessToPOI":true,"HasAccessToReports":true,"HasAccessToSettings":true,"HasAccessToTrips":true,"HasAccessToTranslations":true,"HasAccessToDashboard":true,"HasAccessToLogBook":true,"HasAccessToGroup":true,"HasAccessToTemplate":true,"HasAccessToUnit":true,"HasAccessToUser":true,"HasAccessToTicket":true,"HasAccessToContract":true,"HasAccessToSIM":true,"HasAccessToCommand":true,"HasAccessToUnitProfile":true,"HasAccessToProfileTrigger":true,"HasAccessToScript":true,"HasAccessToTriggerSchedule":true},"StatusCode":5,"ComponentFilterIds":[1,2,3]}
application/xml, text/xml
Sample:
<APIPreviewExcelUnitImportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.APIModels"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.Transport">Success</ResponseCode> <ComponentFilterIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </ComponentFilterIds> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 4</ErrorMessage> <MenuAccessData xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <HasAccessToCommand>true</HasAccessToCommand> <HasAccessToContract>true</HasAccessToContract> <HasAccessToDashboard>true</HasAccessToDashboard> <HasAccessToDriver>true</HasAccessToDriver> <HasAccessToGroup>true</HasAccessToGroup> <HasAccessToLogBook>true</HasAccessToLogBook> <HasAccessToMap>true</HasAccessToMap> <HasAccessToPOI>true</HasAccessToPOI> <HasAccessToProfileTrigger>true</HasAccessToProfileTrigger> <HasAccessToReports>true</HasAccessToReports> <HasAccessToSIM>true</HasAccessToSIM> <HasAccessToScript>true</HasAccessToScript> <HasAccessToSettings>true</HasAccessToSettings> <HasAccessToTemplate>true</HasAccessToTemplate> <HasAccessToTicket>true</HasAccessToTicket> <HasAccessToTranslations>true</HasAccessToTranslations> <HasAccessToTriggerSchedule>true</HasAccessToTriggerSchedule> <HasAccessToTrips>true</HasAccessToTrips> <HasAccessToUnit>true</HasAccessToUnit> <HasAccessToUnitProfile>true</HasAccessToUnitProfile> <HasAccessToUser>true</HasAccessToUser> <HasAccessToVehicle>true</HasAccessToVehicle> <HasAccessToVehicleAdministration>true</HasAccessToVehicleAdministration> </MenuAccessData> <StatusCode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">5</StatusCode> <Success xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</Success> <ErrorCode>1</ErrorCode> <PreviewUnits> <APIPreviewExcelUnitImportData i:nil="true" /> <APIPreviewExcelUnitImportData> <BatchNumber>0</BatchNumber> <DateOfRegistration>2025-04-03T19:05:16.720408+02:00</DateOfRegistration> <DeviceSubType>AssistSolo</DeviceSubType> <DeviceVendor i:nil="true" /> <FWVersion>0</FWVersion> <ID>1</ID> <IMEINumber>sample string 2</IMEINumber> <IMSINumber>0</IMSINumber> <LastUpdate>2025-04-03T19:05:16.720408+02:00</LastUpdate> <ManufacturingDate>0001-01-01T00:00:00</ManufacturingDate> <RegistrationNumber>sample string 7</RegistrationNumber> <S2SenderId i:nil="true" /> <SWVersion>0</SWVersion> <SerialNumber>sample string 4</SerialNumber> <SimNumber>sample string 6</SimNumber> <SimSerialNumber>0</SimSerialNumber> </APIPreviewExcelUnitImportData> <APIPreviewExcelUnitImportData> <BatchNumber>0</BatchNumber> <DateOfRegistration>2025-04-03T19:05:16.720408+02:00</DateOfRegistration> <DeviceSubType>AssistSolo</DeviceSubType> <DeviceVendor i:nil="true" /> <FWVersion>0</FWVersion> <ID>1</ID> <IMEINumber>sample string 2</IMEINumber> <IMSINumber>0</IMSINumber> <LastUpdate>2025-04-03T19:05:16.720408+02:00</LastUpdate> <ManufacturingDate>0001-01-01T00:00:00</ManufacturingDate> <RegistrationNumber>sample string 7</RegistrationNumber> <S2SenderId i:nil="true" /> <SWVersion>0</SWVersion> <SerialNumber>sample string 4</SerialNumber> <SimNumber>sample string 6</SimNumber> <SimSerialNumber>0</SimSerialNumber> </APIPreviewExcelUnitImportData> </PreviewUnits> <UniqueFilename>sample string 2</UniqueFilename> </APIPreviewExcelUnitImportResponse>