POST api/companyevents/create

Request Information

URI Parameters

None.

Body Parameters

CreateCompanyEventRequest
NameDescriptionTypeAdditional information
event_id

integer

None.

event_title

string

None.

event_content

string

None.

event_date

date

None.

event_location

string

None.

event_dress_code

string

None.

event_reponse_until

date

None.

Request Formats

application/json, text/json

Sample:
{
  "event_id": 1,
  "event_title": "sample string 1",
  "event_content": "sample string 2",
  "event_date": "2025-05-22T17:09:39.2820466+02:00",
  "event_location": "sample string 4",
  "event_dress_code": "sample string 5",
  "event_reponse_until": "2025-05-22T17:09:39.2830473+02:00"
}

application/xml, text/xml

Sample:
<CreateCompanyEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <event_content>sample string 2</event_content>
  <event_date>2025-05-22T17:09:39.2820466+02:00</event_date>
  <event_dress_code>sample string 5</event_dress_code>
  <event_id>1</event_id>
  <event_location>sample string 4</event_location>
  <event_reponse_until>2025-05-22T17:09:39.2830473+02:00</event_reponse_until>
  <event_title>sample string 1</event_title>
</CreateCompanyEventRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.