POST api/events/create

Request Information

URI Parameters

None.

Body Parameters

new_event_data
NameDescriptionTypeAdditional information
users

Collection of integer

None.

type

integer

None.

dates

Collection of date

None.

work_start

date

None.

work_end

date

None.

Request Formats

application/json, text/json

Sample:
{
  "users": [
    1,
    2
  ],
  "type": 1,
  "dates": [
    "2025-05-22T16:21:53.1547352+02:00",
    "2025-05-22T16:21:53.1547352+02:00"
  ],
  "work_start": "2025-05-22T16:21:53.1547352+02:00",
  "work_end": "2025-05-22T16:21:53.1547352+02:00"
}

application/xml, text/xml

Sample:
<new_event_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <dates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:dateTime>2025-05-22T16:21:53.1547352+02:00</d2p1:dateTime>
    <d2p1:dateTime>2025-05-22T16:21:53.1547352+02:00</d2p1:dateTime>
  </dates>
  <type>1</type>
  <users xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </users>
  <work_end>2025-05-22T16:21:53.1547352+02:00</work_end>
  <work_start>2025-05-22T16:21:53.1547352+02:00</work_start>
</new_event_data>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.