POST api/sickLeave/create

Request Information

URI Parameters

None.

Body Parameters

sickLeaveRqst
NameDescriptionTypeAdditional information
usr_id

integer

None.

date_from

date

None.

comment

string

None.

file

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "usr_id": 1,
  "date_from": "2025-05-22T16:42:37.8187528+02:00",
  "comment": "sample string 3",
  "file": true
}

application/xml, text/xml

Sample:
<sickLeaveRqst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <comment>sample string 3</comment>
  <date_from>2025-05-22T16:42:37.8187528+02:00</date_from>
  <file>true</file>
  <usr_id>1</usr_id>
</sickLeaveRqst>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.