POST api/Unit/UpdateUnit

Updates a Unit

Request Information

Parameters

NameDescriptionAdditional information
req

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "SimNumber": "sample string 1",
  "DeviceVendor": "sample string 2",
  "DeviceSubType": "sample string 3",
  "FWversion": 4.0,
  "UnitID": 5,
  "VehicleProfileID": 6,
  "LastContactTime": "2024-10-16T22:59:30.4089534+02:00",
  "LastReportedOn": "2024-10-16T22:59:30.4089534+02:00",
  "Token": "sample string 7",
  "FreeText": "sample string 8",
  "GroupIds": [
    1,
    2,
    3
  ],
  "FromIndex": 9,
  "ToIndex": 10,
  "IsWebCalling": true,
  "RequestMode": "sample string 12",
  "Client": "sample string 13",
  "AppVersion": "sample string 14",
  "AppOperatingSystem": "sample string 15",
  "AppName": "sample string 16",
  "MasterUserID": 17,
  "IsRecurringRequest": true
}

text/html

Sample:
{"SimNumber":"sample string 1","DeviceVendor":"sample string 2","DeviceSubType":"sample string 3","FWversion":4.0,"UnitID":5,"VehicleProfileID":6,"LastContactTime":"2024-10-16T22:59:30.4089534+02:00","LastReportedOn":"2024-10-16T22:59:30.4089534+02:00","Token":"sample string 7","FreeText":"sample string 8","GroupIds":[1,2,3],"FromIndex":9,"ToIndex":10,"IsWebCalling":true,"RequestMode":"sample string 12","Client":"sample string 13","AppVersion":"sample string 14","AppOperatingSystem":"sample string 15","AppName":"sample string 16","MasterUserID":17,"IsRecurringRequest":true}

application/xml, text/xml

Sample:
<APIUnitUpdateRequest 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 16</AppName>
  <AppOperatingSystem xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 15</AppOperatingSystem>
  <AppVersion xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 14</AppVersion>
  <Client xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 13</Client>
  <FreeText xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 8</FreeText>
  <FromIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">9</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">17</MasterUserID>
  <RequestMode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 12</RequestMode>
  <ToIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">10</ToIndex>
  <Token xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 7</Token>
  <DeviceSubType>sample string 3</DeviceSubType>
  <DeviceVendor>sample string 2</DeviceVendor>
  <FWversion>4</FWversion>
  <LastContactTime>2024-10-16T22:59:30.4089534+02:00</LastContactTime>
  <LastReportedOn>2024-10-16T22:59:30.4089534+02:00</LastReportedOn>
  <SimNumber>sample string 1</SimNumber>
  <UnitID>5</UnitID>
  <VehicleProfileID>6</VehicleProfileID>
</APIUnitUpdateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "UpdateUnit": {
    "ID": 1,
    "DateOfRegistration": "2024-10-16T22:59:30.4265302+02:00",
    "DeviceVendor": "sample string 3",
    "DeviceSubType": "sample string 4",
    "FWversion": 5.1,
    "IMEINumber": "sample string 6",
    "IMSINumber": "sample string 7",
    "LastUpdate": "2024-10-16T22:59:30.4265302+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": "2024-10-16T22:59:30.4265302+02:00",
    "LastReportedOn": "2024-10-16T22:59:30.4265302+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
    }
  },
  "ErrorCode": 1,
  "Success": true,
  "ErrorMessage": "sample string 3",
  "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": 4,
  "ComponentFilterIds": [
    1,
    2,
    3
  ]
}

text/html

Sample:
{"UpdateUnit":{"ID":1,"DateOfRegistration":"2024-10-16T22:59:30.4265302+02:00","DeviceVendor":"sample string 3","DeviceSubType":"sample string 4","FWversion":5.1,"IMEINumber":"sample string 6","IMSINumber":"sample string 7","LastUpdate":"2024-10-16T22:59:30.4265302+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":"2024-10-16T22:59:30.4265302+02:00","LastReportedOn":"2024-10-16T22:59:30.4265302+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}},"ErrorCode":1,"Success":true,"ErrorMessage":"sample string 3","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":4,"ComponentFilterIds":[1,2,3]}

application/xml, text/xml

Sample:
<APIUnitUpdateResponse 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 3</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">4</StatusCode>
  <Success xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</Success>
  <ErrorCode>1</ErrorCode>
  <UpdateUnit>
    <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>2024-10-16T22:59:30.4265302+02:00</DateOfRegistration>
    <DeviceSubType>sample string 4</DeviceSubType>
    <DeviceVendor>sample string 3</DeviceVendor>
    <DeviceVendorID>1</DeviceVendorID>
    <FWversion>5.1</FWversion>
    <GroupIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
      <d3p1:int>3</d3p1:int>
    </GroupIds>
    <ICCNo>sample string 11</ICCNo>
    <ID>1</ID>
    <IMEINumber>sample string 6</IMEINumber>
    <IMSINumber>sample string 7</IMSINumber>
    <LastContactTime>2024-10-16T22:59:30.4265302+02:00</LastContactTime>
    <LastReportedOn>2024-10-16T22:59:30.4265302+02:00</LastReportedOn>
    <LastUpdate>2024-10-16T22:59:30.4265302+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>
  </UpdateUnit>
</APIUnitUpdateResponse>