POST api/{programid}/TimeEntry/SearchTimeSheetsForRuleOverride
Returns a list of time entries based on the filters provided. This function is specifically for Mobile/T4C
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
programid |
Program Id |
string |
Required |
Body Parameters
SearchTimesheetsForRuleOverrideRequestName | Description | Type | Additional information |
---|---|---|---|
DateFrom | date |
None. |
|
DateTo | date |
None. |
|
ServiceDescription | string |
None. |
|
RuleOverrideList | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DateFrom": "2024-11-16T04:47:42.9969727-05:00", "DateTo": "2024-11-16T04:47:42.9969727-05:00", "ServiceDescription": "sample string 3", "RuleOverrideList": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<SearchTimesheetsForRuleOverrideRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO.TimeEntry"> <DateFrom>2024-11-16T04:47:42.9969727-05:00</DateFrom> <DateTo>2024-11-16T04:47:42.9969727-05:00</DateTo> <RuleOverrideList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </RuleOverrideList> <ServiceDescription>sample string 3</ServiceDescription> </SearchTimesheetsForRuleOverrideRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SearchTimesheetsForRuleOverrideResponseName | Description | Type | Additional information |
---|---|---|---|
TimeSheetOverrideModels | Collection of TimeSheetOverrideModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "TimeSheetOverrideModels": [ { "TimesheetNo": "sample string 1", "LineNo": 2 }, { "TimesheetNo": "sample string 1", "LineNo": 2 } ] }
application/xml, text/xml
Sample:
<SearchTimesheetsForRuleOverrideResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO.TimeEntry"> <TimeSheetOverrideModels> <SearchTimesheetsForRuleOverrideResponse.TimeSheetOverrideModel> <LineNo>2</LineNo> <TimesheetNo>sample string 1</TimesheetNo> </SearchTimesheetsForRuleOverrideResponse.TimeSheetOverrideModel> <SearchTimesheetsForRuleOverrideResponse.TimeSheetOverrideModel> <LineNo>2</LineNo> <TimesheetNo>sample string 1</TimesheetNo> </SearchTimesheetsForRuleOverrideResponse.TimeSheetOverrideModel> </TimeSheetOverrideModels> </SearchTimesheetsForRuleOverrideResponse>