POST api/{programid}/Timesheets/IVRManualEntryReasons

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

ManualEntryReasonParams
NameDescriptionTypeAdditional information
ConsumerNo

string

None.

EmployeeNo

string

None.

DateWorked

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ConsumerNo": "sample string 1",
  "EmployeeNo": "sample string 2",
  "DateWorked": "2024-11-16T02:05:45.5314132-05:00"
}

application/xml, text/xml

Sample:
<ManualEntryReasonParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.Timesheet">
  <ConsumerNo>sample string 1</ConsumerNo>
  <DateWorked>2024-11-16T02:05:45.5314132-05:00</DateWorked>
  <EmployeeNo>sample string 2</EmployeeNo>
</ManualEntryReasonParams>

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 'ManualEntryReasonParams'.

Response Information

Resource Description

ManualEntryReasonsIVRResponse
NameDescriptionTypeAdditional information
EntryReasons

Collection of ManualEntryReason

None.

ReasonRequired

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "EntryReasons": [
    {
      "Id": 1,
      "Description": "sample string 2",
      "IsEnabled": true
    },
    {
      "Id": 1,
      "Description": "sample string 2",
      "IsEnabled": true
    }
  ],
  "ReasonRequired": true
}

application/xml, text/xml

Sample:
<ManualEntryReasonsIVRResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.Timesheet">
  <EntryReasons xmlns:d2p1="http://schemas.datacontract.org/2004/07/PPL.Services.Models.NavisionData.Timesheets">
    <d2p1:ManualEntryReason>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEnabled>true</d2p1:IsEnabled>
    </d2p1:ManualEntryReason>
    <d2p1:ManualEntryReason>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEnabled>true</d2p1:IsEnabled>
    </d2p1:ManualEntryReason>
  </EntryReasons>
  <ReasonRequired>true</ReasonRequired>
</ManualEntryReasonsIVRResponse>