POST api/paidLeave/create

Request Information

URI Parameters

None.

Body Parameters

paidLeaveRqst
NameDescriptionTypeAdditional information
usr_id

integer

None.

date_from

date

None.

date_to

date

None.

comment

string

None.

paid_leave_type

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "usr_id": 1,
  "date_from": "2025-05-22T17:06:41.6565199+02:00",
  "date_to": "2025-05-22T17:06:41.6565199+02:00",
  "comment": "sample string 4",
  "paid_leave_type": 5
}

application/xml, text/xml

Sample:
<paidLeaveRqst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <comment>sample string 4</comment>
  <date_from>2025-05-22T17:06:41.6565199+02:00</date_from>
  <date_to>2025-05-22T17:06:41.6565199+02:00</date_to>
  <paid_leave_type>5</paid_leave_type>
  <usr_id>1</usr_id>
</paidLeaveRqst>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.