POST api/workTime/create

Request Information

URI Parameters

None.

Body Parameters

workTimeRqst
NameDescriptionTypeAdditional information
rqst_id

integer

None.

usr_id

integer

None.

comment

string

None.

date_from

date

None.

date_to

date

None.

Request Formats

application/json, text/json

Sample:
{
  "rqst_id": 1,
  "usr_id": 1,
  "comment": "sample string 2",
  "date_from": "2025-05-22T16:18:07.3209087+02:00",
  "date_to": "2025-05-22T16:18:07.3209087+02:00"
}

application/xml, text/xml

Sample:
<workTimeRqst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <comment>sample string 2</comment>
  <date_from>2025-05-22T16:18:07.3209087+02:00</date_from>
  <date_to>2025-05-22T16:18:07.3209087+02:00</date_to>
  <rqst_id>1</rqst_id>
  <usr_id>1</usr_id>
</workTimeRqst>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.