POST api/SicknessScheme/{employeeNo}/{schemeName}/{effectiveDate}

Update a sickness scheme for an Employee. The key for updates is the SchemeName and Effective Date

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

schemeName

Scheme Name

string

Required

effectiveDate

Effective Date in the format dd-MM-yyyy

date

Required

Body Parameters

In request Body: Employee Sickness Scheme Details

SicknessSchemeDetail
NameDescriptionTypeAdditional information
SchemeName

string

Required

EffectiveDate

date

Required

RatePaidOverride

decimal number

None.

SalaryReducedOverride

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "SchemeName": "sample string 1",
  "EffectiveDate": "2024-12-23T06:26:01.7639676+00:00",
  "RatePaidOverride": 1.0,
  "SalaryReducedOverride": 1.0
}

application/xml, text/xml

Sample:
<SicknessSchemeDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models">
  <EffectiveDate>2024-12-23T06:26:01.7639676+00:00</EffectiveDate>
  <RatePaidOverride>1</RatePaidOverride>
  <SalaryReducedOverride>1</SalaryReducedOverride>
  <SchemeName>sample string 1</SchemeName>
</SicknessSchemeDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result

ResultWithMessage
NameDescriptionTypeAdditional information
result

'OK', 'Error'

string

None.

message

Returns if result is Error

string

None.

returnValue

string

None.

Response Formats

application/json, text/json

Sample:
{
    "result": "OK"
}

{
    "result": "Error",
    "message": "Unable to save: the..."
}

application/xml, text/xml

Sample:
<ResultWithMessage>
    <result>OK</result>
</ResultWithMessage>

<ResultWithMessage>  
    <result>Error</result>
    <message>Unable to save: the...</message>
</ResultWithMessage>