POST api/workTime/create/multiple

Request Information

URI Parameters

None.

Body Parameters

work_time_rqst_multiple
NameDescriptionTypeAdditional information
usr_id

integer

None.

dates

Collection of date_from_to_comment

None.

Request Formats

application/json, text/json

Sample:
{
  "usr_id": 1,
  "dates": [
    {
      "date_from": "2025-05-22T16:11:34.9349909+02:00",
      "date_to": "2025-05-22T16:11:34.9349909+02:00",
      "comment": "sample string 3"
    },
    {
      "date_from": "2025-05-22T16:11:34.9349909+02:00",
      "date_to": "2025-05-22T16:11:34.9349909+02:00",
      "comment": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<work_time_rqst_multiple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <dates>
    <date_from_to_comment>
      <comment>sample string 3</comment>
      <date_from>2025-05-22T16:11:34.9349909+02:00</date_from>
      <date_to>2025-05-22T16:11:34.9349909+02:00</date_to>
    </date_from_to_comment>
    <date_from_to_comment>
      <comment>sample string 3</comment>
      <date_from>2025-05-22T16:11:34.9349909+02:00</date_from>
      <date_to>2025-05-22T16:11:34.9349909+02:00</date_to>
    </date_from_to_comment>
  </dates>
  <usr_id>1</usr_id>
</work_time_rqst_multiple>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.