POST api/Unit/UpdateMultipleUnits
Updates a Unit
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
req |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "UnitIDs": [ 1, 2, 3 ], "DeviceVendor": "sample string 1", "DeviceSubType": "sample string 2", "FWversion": 3.0, "Token": "sample string 4", "FreeText": "sample string 5", "GroupIds": [ 1, 2, 3 ], "FromIndex": 6, "ToIndex": 7, "IsWebCalling": true, "RequestMode": "sample string 9", "Client": "sample string 10", "AppVersion": "sample string 11", "AppOperatingSystem": "sample string 12", "AppName": "sample string 13", "MasterUserID": 14, "IsRecurringRequest": true }
text/html
Sample:
{"UnitIDs":[1,2,3],"DeviceVendor":"sample string 1","DeviceSubType":"sample string 2","FWversion":3.0,"Token":"sample string 4","FreeText":"sample string 5","GroupIds":[1,2,3],"FromIndex":6,"ToIndex":7,"IsWebCalling":true,"RequestMode":"sample string 9","Client":"sample string 10","AppVersion":"sample string 11","AppOperatingSystem":"sample string 12","AppName":"sample string 13","MasterUserID":14,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APIMultipleUnitUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.APIModels"> <AppName xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 13</AppName> <AppOperatingSystem xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 12</AppOperatingSystem> <AppVersion xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 11</AppVersion> <Client xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 10</Client> <FreeText xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 5</FreeText> <FromIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">6</FromIndex> <GroupIds 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> </GroupIds> <IsRecurringRequest xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</IsRecurringRequest> <IsWebCalling xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</IsWebCalling> <MasterUserID xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">14</MasterUserID> <RequestMode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 9</RequestMode> <ToIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">7</ToIndex> <Token xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 4</Token> <DeviceSubType>sample string 2</DeviceSubType> <DeviceVendor>sample string 1</DeviceVendor> <FWversion>3</FWversion> <UnitIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </UnitIDs> </APIMultipleUnitUpdateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "UnitData": [ { "ID": 1, "DateOfRegistration": "2025-04-03T23:51:14.2201711+02:00", "DeviceVendor": "sample string 3", "DeviceSubType": "sample string 4", "FWversion": 5.1, "IMEINumber": "sample string 6", "IMSINumber": "sample string 7", "LastUpdate": "2025-04-03T23:51:14.2201711+02:00", "SerialNumber": "sample string 8", "SimNumber": "sample string 9", "SIMSerialNumber": 10, "ICCNo": "sample string 11", "SIMID": 1, "GroupIds": [ 1, 2, 3 ], "ProfileSessionStatusID": 1, "ProfileProgressPercentage": 1.1, "LastContactTime": "2025-04-03T23:51:14.2201711+02:00", "LastReportedOn": "2025-04-03T23:51:14.2201711+02:00", "RegistrationNumber": "sample string 12", "DeviceVendorID": 1, "VehicleProfileName": "sample string 13", "VehicleProfileID": 14, "StatusText": "sample string 15", "AccessRights": { "HasConfigureAccess": true, "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } }, { "ID": 1, "DateOfRegistration": "2025-04-03T23:51:14.2201711+02:00", "DeviceVendor": "sample string 3", "DeviceSubType": "sample string 4", "FWversion": 5.1, "IMEINumber": "sample string 6", "IMSINumber": "sample string 7", "LastUpdate": "2025-04-03T23:51:14.2201711+02:00", "SerialNumber": "sample string 8", "SimNumber": "sample string 9", "SIMSerialNumber": 10, "ICCNo": "sample string 11", "SIMID": 1, "GroupIds": [ 1, 2, 3 ], "ProfileSessionStatusID": 1, "ProfileProgressPercentage": 1.1, "LastContactTime": "2025-04-03T23:51:14.2201711+02:00", "LastReportedOn": "2025-04-03T23:51:14.2201711+02:00", "RegistrationNumber": "sample string 12", "DeviceVendorID": 1, "VehicleProfileName": "sample string 13", "VehicleProfileID": 14, "StatusText": "sample string 15", "AccessRights": { "HasConfigureAccess": true, "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } }, { "ID": 1, "DateOfRegistration": "2025-04-03T23:51:14.2201711+02:00", "DeviceVendor": "sample string 3", "DeviceSubType": "sample string 4", "FWversion": 5.1, "IMEINumber": "sample string 6", "IMSINumber": "sample string 7", "LastUpdate": "2025-04-03T23:51:14.2201711+02:00", "SerialNumber": "sample string 8", "SimNumber": "sample string 9", "SIMSerialNumber": 10, "ICCNo": "sample string 11", "SIMID": 1, "GroupIds": [ 1, 2, 3 ], "ProfileSessionStatusID": 1, "ProfileProgressPercentage": 1.1, "LastContactTime": "2025-04-03T23:51:14.2201711+02:00", "LastReportedOn": "2025-04-03T23:51:14.2201711+02:00", "RegistrationNumber": "sample string 12", "DeviceVendorID": 1, "VehicleProfileName": "sample string 13", "VehicleProfileID": 14, "StatusText": "sample string 15", "AccessRights": { "HasConfigureAccess": true, "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } } ], "UpdateMessages": [ { "ID": 1, "Message": "sample string 2", "MessageType": 3 }, { "ID": 1, "Message": "sample string 2", "MessageType": 3 }, { "ID": 1, "Message": "sample string 2", "MessageType": 3 } ], "Success": true, "ErrorMessage": "sample string 2", "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": 3, "ComponentFilterIds": [ 1, 2, 3 ] }
text/html
Sample:
{"UnitData":[{"ID":1,"DateOfRegistration":"2025-04-03T23:51:14.2201711+02:00","DeviceVendor":"sample string 3","DeviceSubType":"sample string 4","FWversion":5.1,"IMEINumber":"sample string 6","IMSINumber":"sample string 7","LastUpdate":"2025-04-03T23:51:14.2201711+02:00","SerialNumber":"sample string 8","SimNumber":"sample string 9","SIMSerialNumber":10,"ICCNo":"sample string 11","SIMID":1,"GroupIds":[1,2,3],"ProfileSessionStatusID":1,"ProfileProgressPercentage":1.1,"LastContactTime":"2025-04-03T23:51:14.2201711+02:00","LastReportedOn":"2025-04-03T23:51:14.2201711+02:00","RegistrationNumber":"sample string 12","DeviceVendorID":1,"VehicleProfileName":"sample string 13","VehicleProfileID":14,"StatusText":"sample string 15","AccessRights":{"HasConfigureAccess":true,"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}},{"ID":1,"DateOfRegistration":"2025-04-03T23:51:14.2201711+02:00","DeviceVendor":"sample string 3","DeviceSubType":"sample string 4","FWversion":5.1,"IMEINumber":"sample string 6","IMSINumber":"sample string 7","LastUpdate":"2025-04-03T23:51:14.2201711+02:00","SerialNumber":"sample string 8","SimNumber":"sample string 9","SIMSerialNumber":10,"ICCNo":"sample string 11","SIMID":1,"GroupIds":[1,2,3],"ProfileSessionStatusID":1,"ProfileProgressPercentage":1.1,"LastContactTime":"2025-04-03T23:51:14.2201711+02:00","LastReportedOn":"2025-04-03T23:51:14.2201711+02:00","RegistrationNumber":"sample string 12","DeviceVendorID":1,"VehicleProfileName":"sample string 13","VehicleProfileID":14,"StatusText":"sample string 15","AccessRights":{"HasConfigureAccess":true,"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}},{"ID":1,"DateOfRegistration":"2025-04-03T23:51:14.2201711+02:00","DeviceVendor":"sample string 3","DeviceSubType":"sample string 4","FWversion":5.1,"IMEINumber":"sample string 6","IMSINumber":"sample string 7","LastUpdate":"2025-04-03T23:51:14.2201711+02:00","SerialNumber":"sample string 8","SimNumber":"sample string 9","SIMSerialNumber":10,"ICCNo":"sample string 11","SIMID":1,"GroupIds":[1,2,3],"ProfileSessionStatusID":1,"ProfileProgressPercentage":1.1,"LastContactTime":"2025-04-03T23:51:14.2201711+02:00","LastReportedOn":"2025-04-03T23:51:14.2201711+02:00","RegistrationNumber":"sample string 12","DeviceVendorID":1,"VehicleProfileName":"sample string 13","VehicleProfileID":14,"StatusText":"sample string 15","AccessRights":{"HasConfigureAccess":true,"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}}],"UpdateMessages":[{"ID":1,"Message":"sample string 2","MessageType":3},{"ID":1,"Message":"sample string 2","MessageType":3},{"ID":1,"Message":"sample string 2","MessageType":3}],"Success":true,"ErrorMessage":"sample string 2","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":3,"ComponentFilterIds":[1,2,3]}
application/xml, text/xml
Sample:
<APIMultipleUnitsUpdateResponse 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 2</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">3</StatusCode> <Success xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</Success> <UnitData> <APIUnitWithSummaryData> <AccessRights> <HasCreateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasCreateAccess> <HasDeleteAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasDeleteAccess> <HasRetrieveAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasRetrieveAccess> <HasUpdateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasUpdateAccess> <HasConfigureAccess>true</HasConfigureAccess> </AccessRights> <DateOfRegistration>2025-04-03T23:51:14.2201711+02:00</DateOfRegistration> <DeviceSubType>sample string 4</DeviceSubType> <DeviceVendor>sample string 3</DeviceVendor> <DeviceVendorID>1</DeviceVendorID> <FWversion>5.1</FWversion> <GroupIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> <d4p1:int>3</d4p1:int> </GroupIds> <ICCNo>sample string 11</ICCNo> <ID>1</ID> <IMEINumber>sample string 6</IMEINumber> <IMSINumber>sample string 7</IMSINumber> <LastContactTime>2025-04-03T23:51:14.2201711+02:00</LastContactTime> <LastReportedOn>2025-04-03T23:51:14.2201711+02:00</LastReportedOn> <LastUpdate>2025-04-03T23:51:14.2201711+02:00</LastUpdate> <ProfileProgressPercentage>1.1</ProfileProgressPercentage> <ProfileSessionStatusID>1</ProfileSessionStatusID> <RegistrationNumber>sample string 12</RegistrationNumber> <SIMID>1</SIMID> <SIMSerialNumber>10</SIMSerialNumber> <SerialNumber>sample string 8</SerialNumber> <SimNumber>sample string 9</SimNumber> <StatusText>sample string 15</StatusText> <VehicleProfileID>14</VehicleProfileID> <VehicleProfileName>sample string 13</VehicleProfileName> </APIUnitWithSummaryData> <APIUnitWithSummaryData> <AccessRights> <HasCreateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasCreateAccess> <HasDeleteAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasDeleteAccess> <HasRetrieveAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasRetrieveAccess> <HasUpdateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasUpdateAccess> <HasConfigureAccess>true</HasConfigureAccess> </AccessRights> <DateOfRegistration>2025-04-03T23:51:14.2201711+02:00</DateOfRegistration> <DeviceSubType>sample string 4</DeviceSubType> <DeviceVendor>sample string 3</DeviceVendor> <DeviceVendorID>1</DeviceVendorID> <FWversion>5.1</FWversion> <GroupIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> <d4p1:int>3</d4p1:int> </GroupIds> <ICCNo>sample string 11</ICCNo> <ID>1</ID> <IMEINumber>sample string 6</IMEINumber> <IMSINumber>sample string 7</IMSINumber> <LastContactTime>2025-04-03T23:51:14.2201711+02:00</LastContactTime> <LastReportedOn>2025-04-03T23:51:14.2201711+02:00</LastReportedOn> <LastUpdate>2025-04-03T23:51:14.2201711+02:00</LastUpdate> <ProfileProgressPercentage>1.1</ProfileProgressPercentage> <ProfileSessionStatusID>1</ProfileSessionStatusID> <RegistrationNumber>sample string 12</RegistrationNumber> <SIMID>1</SIMID> <SIMSerialNumber>10</SIMSerialNumber> <SerialNumber>sample string 8</SerialNumber> <SimNumber>sample string 9</SimNumber> <StatusText>sample string 15</StatusText> <VehicleProfileID>14</VehicleProfileID> <VehicleProfileName>sample string 13</VehicleProfileName> </APIUnitWithSummaryData> <APIUnitWithSummaryData> <AccessRights> <HasCreateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasCreateAccess> <HasDeleteAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasDeleteAccess> <HasRetrieveAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasRetrieveAccess> <HasUpdateAccess xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</HasUpdateAccess> <HasConfigureAccess>true</HasConfigureAccess> </AccessRights> <DateOfRegistration>2025-04-03T23:51:14.2201711+02:00</DateOfRegistration> <DeviceSubType>sample string 4</DeviceSubType> <DeviceVendor>sample string 3</DeviceVendor> <DeviceVendorID>1</DeviceVendorID> <FWversion>5.1</FWversion> <GroupIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> <d4p1:int>3</d4p1:int> </GroupIds> <ICCNo>sample string 11</ICCNo> <ID>1</ID> <IMEINumber>sample string 6</IMEINumber> <IMSINumber>sample string 7</IMSINumber> <LastContactTime>2025-04-03T23:51:14.2201711+02:00</LastContactTime> <LastReportedOn>2025-04-03T23:51:14.2201711+02:00</LastReportedOn> <LastUpdate>2025-04-03T23:51:14.2201711+02:00</LastUpdate> <ProfileProgressPercentage>1.1</ProfileProgressPercentage> <ProfileSessionStatusID>1</ProfileSessionStatusID> <RegistrationNumber>sample string 12</RegistrationNumber> <SIMID>1</SIMID> <SIMSerialNumber>10</SIMSerialNumber> <SerialNumber>sample string 8</SerialNumber> <SimNumber>sample string 9</SimNumber> <StatusText>sample string 15</StatusText> <VehicleProfileID>14</VehicleProfileID> <VehicleProfileName>sample string 13</VehicleProfileName> </APIUnitWithSummaryData> </UnitData> <UpdateMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Model"> <d2p1:UnitUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:UnitUpdateMessage> <d2p1:UnitUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:UnitUpdateMessage> <d2p1:UnitUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:UnitUpdateMessage> </UpdateMessages> </APIMultipleUnitsUpdateResponse>