POST api/{programid}/Timesheets/UpdateSickLeave

Call to update Sick Leave balances

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

UpdateSickLeaveDTO
NameDescriptionTypeAdditional information
ParticipantID

string

None.

ProviderID

string

None.

StartDate

date

None.

EndDate

date

None.

Accrued

decimal number

None.

Carryover

decimal number

None.

Used

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ParticipantID": "sample string 1",
  "ProviderID": "sample string 2",
  "StartDate": "2024-11-16T10:05:50.7984908+00:00",
  "EndDate": "2024-11-16T10:05:50.7984908+00:00",
  "Accrued": 5.0,
  "Carryover": 6.0,
  "Used": 7.0
}

application/xml, text/xml

Sample:
<UpdateSickLeaveDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO.Timesheet">
  <Accrued>5</Accrued>
  <Carryover>6</Carryover>
  <EndDate>2024-11-16T10:05:50.7984908+00:00</EndDate>
  <ParticipantID>sample string 1</ParticipantID>
  <ProviderID>sample string 2</ProviderID>
  <StartDate>2024-11-16T10:05:50.7984908+00:00</StartDate>
  <Used>7</Used>
</UpdateSickLeaveDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.