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

NameDescriptionTypeAdditional information
programid

Program Id

string

Required

Body Parameters

SearchTimesheetsForRuleOverrideRequest
NameDescriptionTypeAdditional 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-16T10:08:58.5945759+00:00",
  "DateTo": "2024-11-16T10:08:58.5945759+00: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-16T10:08:58.5945759+00:00</DateFrom>
  <DateTo>2024-11-16T10:08:58.5945759+00: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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SearchTimesheetsForRuleOverrideRequest'.

Response Information

Resource Description

SearchTimesheetsForRuleOverrideResponse
NameDescriptionTypeAdditional 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>