PUT api/Units/PutMany
Updates a batch of units. Remember to set Content-Type in header, ie: Content-Type: application/json
Request Information
URI Parameters
None.
Body Parameters
UpdateManyModelName | Description | Type | Additional information |
---|---|---|---|
SerialNumbers | Collection of string |
None. |
|
Configuration | UnitModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "SerialNumbers": [ "sample string 1", "sample string 2" ], "Configuration": { "SerialNumber": "sample string 1", "UnitName": "sample string 2", "IntervalSeconds": 1, "IntervalReportDisableAvailable": true, "UnitConfiguredIntervalSeconds": 1, "FixedReportHoursMaxCount": 4, "FixedReportTime1Hour": 1, "FixedReportTime1DayOfWeek": 1, "FixedReportTime2Hour": 1, "FixedReportTime2DayOfWeek": 1, "FixedReportTime3Hour": 1, "FixedReportTime3DayOfWeek": 1, "FixedReportTime4Hour": 1, "FixedReportTime4DayOfWeek": 1, "FixedReportTime5Hour": 1, "FixedReportTime5DayOfWeek": 1, "FixedReportTime6Hour": 1, "FixedReportTime6DayOfWeek": 1, "FixedReportTime7Hour": 1, "FixedReportTime7DayOfWeek": 1, "FixedReportTime8Hour": 1, "FixedReportTime8DayOfWeek": 1, "FixedReportTime9Hour": 1, "FixedReportTime9DayOfWeek": 1, "FixedReportTime10Hour": 1, "FixedReportTime10DayOfWeek": 1, "RFIDBeaconOn": true, "RFIDPowerLevel": 1, "TXValue": 1, "RXValue": 1, "UnitPhoneNumber": "sample string 5", "ServerURL": "sample string 6", "ServerPort": 1, "UserGroupId": 1, "UserGroupName": "sample string 7", "MotionSensorAvailable": true, "MotionTriggerEnabled": true, "MotionIntervalReportDisableAvailable": true, "MotionTrigger": 0, "MotionIntervalSeconds": 1, "ShockSensorAvailable": true, "ShockTriggerEnabled": true, "ShockTrigger": 0, "ShockTriggerLevel": 1, "LightSensorAvailable": true, "LightTriggerEnabled": true, "LightTrigger": 0, "LightTriggerLevel": 1, "TiltSensorAvailable": true, "TiltTriggerEnabled": true, "TiltTrigger": 0, "TiltAngle": 1, "RotationAvailable": true, "RotationTrigger": 0, "RotationStartAngle": 1, "RotationStopAngle": 1, "RotationStopTimeSeconds": 1, "TemperatureRangeTriggerAvailable": true, "OutsideTemperatureRangeTrigger": 0, "TemperatureRangeLowValue": 1, "TemperatureRangeHighValue": 1, "PressureRangeTriggerAvailable": true, "OutsidePressureRangeTrigger": 0, "PressureRangeLowValue": 1, "PressureRangeHighValue": 1, "HumidityRangeTriggerAvailable": true, "OutsideHumidityRangeTrigger": 0, "HumidityRangeLowValue": 1, "HumidityRangeHighValue": 1, "DeviceLoggingEnabled": true, "GPSAvailable": true, "GPSEnabled": true, "SkipGPSIfNoMotion": true, "EnableTriangulation": true, "ConfigurationPending": true, "SMSPowerSave": true, "UnitTypeId": 1, "UnitTypeName": "sample string 18", "ReferenceId": "sample string 19", "DailyScheduleAvailable": true, "DailySchedule": { "SerialNumber": "sample string 1", "Enabled": true, "WakeupTrigger": true, "MotionTrigger": true, "ShockTrigger": true, "TiltTrigger": true, "LightTrigger": true, "InsideIntervals": true, "Days": [ { "DayNumber": 1, "StartMinute": 2, "EndMinute": 3 }, { "DayNumber": 1, "StartMinute": 2, "EndMinute": 3 } ] }, "Closed": true, "RequestedClosed": true, "Suspended": true, "FirmwareVersion": 23.1, "DeliveryDate": "2024-11-21T09:51:56.0563777+00:00", "BatteryInstalledDate": "2024-11-21T09:51:56.0563777+00:00", "RFIDBeaconOnSeconds": 24, "UtilizationMode": 25, "ReplacedBySerialnumber": "sample string 26", "ReplacingSerialnumber": "sample string 27", "FlightMode": { "SerialNumber": "sample string 1", "Enabled": true, "StartTime": "2024-11-21T09:51:56.0563777+00:00", "EndTime": "2024-11-21T09:51:56.0563777+00:00", "Status": 0, "ActiveHoursLeft": null, "StatusText": "Disabled" }, "NextServiceKm": 1, "NextServiceHours": 1, "TripCounterOffsetKm": 1, "TripCounterOffsetHours": 1, "LogDataEnabled": true, "LogDataIntervalSeconds": 1, "GPSOnLogData": true, "ItemDescription": "sample string 28", "UnitNotes": "sample string 29", "ActivationDate": "2024-11-21T09:51:56.0563777+00:00", "CurrentSubscription": "sample string 30", "CurrentSubscriptionStartDate": "2024-11-21T09:51:56.0563777+00:00", "CurrentSubscriptionEndDate": "2024-11-21T09:51:56.0563777+00:00", "TAASCommitmentStartDate": "2024-11-21T09:51:56.0563777+00:00", "TAASCommitmentEndDate": "2024-11-21T09:51:56.0563777+00:00", "NextInspectionDate": "2024-11-21T09:51:56.0563777+00:00", "LastCommunicationDate": "2024-11-21T09:51:56.0563777+00:00", "RATStrategyModeId": 1, "RATStrategySettings": [ 1, 2 ], "UnitId": 32, "GuardLockSite": null, "BLEInterval": 33, "IsNoCommunication": true, "IODataSupported": true, "RFIDBeaconAvailable": true, "BLEAvailable": true, "IOSettings": { "DigitalInput1Trigger": true, "DigitalInput2Trigger": true, "DigitalInput3Trigger": true, "AnalogInput1Trigger": true, "AnalogInput2Trigger": true, "DigitalOutput1Trigger": true, "DigitalOutput2Trigger": true, "DigitalOutput3Trigger": true, "DigitalOutput1": true, "DigitalOutput2": true, "DigitalOutput3": true }, "ProductTypeName": "sample string 38", "PressureSensorAvailable": true, "HumiditySensorAvailable": true, "DistanceFilterAvailable": true, "DistanceTrigger": true, "DistanceMeter": 1, "PublicLink": "sample string 43", "PublicLinkDetails": { "SerialNumber": "sample string 1", "PublishFromDate": "2024-11-21T09:51:56.0563777+00:00", "GrantedAccess": 0, "PublishedUrl": "sample string 3" }, "MessageCount": 1, "ComAttempts": 1, "TagReaderAvailable": true, "CanBatteryReset": true, "CanChangeBattery": true, "SIAEnabled": true } }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Updates a batch of units. Remember to set Content-Type in header, ie: Content-Type: application/json
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.