GET api/Utilization/GetUnitInUseMinutes?SerialNumber={SerialNumber}&AfterDate={AfterDate}&BeforeDate={BeforeDate}
Get the total number of minutes in use for a specific unit
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
SerialNumber |
Unit serial number |
string |
Required |
AfterDate |
Only activity after this date and time (Optional) |
date |
None. |
BeforeDate |
Only activity before this date and time. If only a date is specified, will include all activity before midnight on this date (Optional) |
date |
None. |
Body Parameters
None.
Response Information
Resource Description
Get the total number of minutes in use for a specific unit
UtilizationInUseModelName | Description | Type | Additional information |
---|---|---|---|
SerialNumber | string |
None. |
|
BeforeDate | date |
Null values possible. |
|
AfterDate | date |
Null values possible. |
|
InUseMinutes | integer32 |
None. |
|
InUseSeconds | integer32 |
None. |
Response Formats
application/json, text/json
Sample:
{ "SerialNumber": "sample string 1", "BeforeDate": "2024-11-21T09:36:13.5403073+00:00", "AfterDate": "2024-11-21T09:36:13.5403073+00:00", "InUseMinutes": 2, "InUseSeconds": 3 }
application/xml, text/xml
Sample:
<UtilizationInUseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <AfterDate>2024-11-21T09:36:13.5403073+00:00</AfterDate> <BeforeDate>2024-11-21T09:36:13.5403073+00:00</BeforeDate> <InUseMinutes>2</InUseMinutes> <InUseSeconds>3</InUseSeconds> <SerialNumber>sample string 1</SerialNumber> </UtilizationInUseModel>