PUT api/Leave

Updates a new leaverequest

Request Information

URI Parameters

None.

Body Parameters

LeaveRequest
NameDescriptionTypeAdditional information
ID

integer

None.

ExtraCodeID

integer

None.

ExtraCodeName

string

None.

StartDate

date

None.

EndDate

date

None.

Comment

string

None.

LeavePeriodID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "ExtraCodeID": 2,
  "ExtraCodeName": "sample string 3",
  "StartDate": "2024-12-22T08:03:22.7848728+01:00",
  "EndDate": "2024-12-22T08:03:22.7848728+01:00",
  "Comment": "sample string 6",
  "LeavePeriodID": 7
}

application/xml, text/xml

Sample:
<LeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
  <Comment>sample string 6</Comment>
  <EndDate>2024-12-22T08:03:22.7848728+01:00</EndDate>
  <ExtraCodeID>2</ExtraCodeID>
  <ExtraCodeName>sample string 3</ExtraCodeName>
  <ID>1</ID>
  <LeavePeriodID>7</LeavePeriodID>
  <StartDate>2024-12-22T08:03:22.7848728+01:00</StartDate>
</LeaveRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.