POST api/remoteWork/create/simple

Request Information

URI Parameters

None.

Body Parameters

simpleWFHRqst
NameDescriptionTypeAdditional information
usr_id

integer

None.

comment

string

None.

dates

Collection of date

None.

special_case

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "usr_id": 1,
  "comment": "sample string 2",
  "dates": [
    "2025-05-22T16:12:46.6817339+02:00",
    "2025-05-22T16:12:46.6817339+02:00"
  ],
  "special_case": true
}

application/xml, text/xml

Sample:
<simpleWFHRqst 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>
  <dates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:dateTime>2025-05-22T16:12:46.6817339+02:00</d2p1:dateTime>
    <d2p1:dateTime>2025-05-22T16:12:46.6817339+02:00</d2p1:dateTime>
  </dates>
  <special_case>true</special_case>
  <usr_id>1</usr_id>
</simpleWFHRqst>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.