POST api/Event/Add

Request Information

URI Parameters

None.

Body Parameters

EventAddDto
NameDescriptionTypeAdditional information
IsActive

boolean

Required

EventCategoryID

globally unique identifier

Required

WebSiteID

globally unique identifier

None.

EventItemAdds

Collection of EventItemAddDto

None.

CoverPhotoID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "isActive": true,
  "eventCategoryID": "d5fb10da-89b4-4d1e-9132-d5965854222b",
  "webSiteID": "f9f64d2d-9c80-4dcd-8ac4-5647684906f5",
  "eventItemAdds": [
    {
      "title": "sample string 1",
      "previewText": "sample string 2",
      "detail": "sample string 3",
      "url": "sample string 4",
      "location": "sample string 5",
      "price": "sample string 6",
      "latitudeLongitude": "sample string 7",
      "eventStartDate": "2025-12-11T17:29:09.4862547+03:00",
      "eventEndDate": "2025-12-11T17:29:09.4862547+03:00",
      "languageID": "8a0803c1-6742-4ea7-b407-587b61db1cd2",
      "eventID": "a54b20c0-8aec-4b70-9ccb-1c42015fcf54"
    },
    {
      "title": "sample string 1",
      "previewText": "sample string 2",
      "detail": "sample string 3",
      "url": "sample string 4",
      "location": "sample string 5",
      "price": "sample string 6",
      "latitudeLongitude": "sample string 7",
      "eventStartDate": "2025-12-11T17:29:09.4862547+03:00",
      "eventEndDate": "2025-12-11T17:29:09.4862547+03:00",
      "languageID": "8a0803c1-6742-4ea7-b407-587b61db1cd2",
      "eventID": "a54b20c0-8aec-4b70-9ccb-1c42015fcf54"
    }
  ],
  "coverPhotoID": "5a017938-9ef4-4cfb-aae8-0bceaec9089b"
}

application/xml, text/xml

Sample:
<EventAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <CoverPhotoID>5a017938-9ef4-4cfb-aae8-0bceaec9089b</CoverPhotoID>
  <EventCategoryID>d5fb10da-89b4-4d1e-9132-d5965854222b</EventCategoryID>
  <EventItemAdds>
    <EventItemAddDto>
      <Detail>sample string 3</Detail>
      <EventEndDate>2025-12-11T17:29:09.4862547+03:00</EventEndDate>
      <EventID>a54b20c0-8aec-4b70-9ccb-1c42015fcf54</EventID>
      <EventStartDate>2025-12-11T17:29:09.4862547+03:00</EventStartDate>
      <LanguageID>8a0803c1-6742-4ea7-b407-587b61db1cd2</LanguageID>
      <LatitudeLongitude>sample string 7</LatitudeLongitude>
      <Location>sample string 5</Location>
      <PreviewText>sample string 2</PreviewText>
      <Price>sample string 6</Price>
      <Title>sample string 1</Title>
      <Url>sample string 4</Url>
    </EventItemAddDto>
    <EventItemAddDto>
      <Detail>sample string 3</Detail>
      <EventEndDate>2025-12-11T17:29:09.4862547+03:00</EventEndDate>
      <EventID>a54b20c0-8aec-4b70-9ccb-1c42015fcf54</EventID>
      <EventStartDate>2025-12-11T17:29:09.4862547+03:00</EventStartDate>
      <LanguageID>8a0803c1-6742-4ea7-b407-587b61db1cd2</LanguageID>
      <LatitudeLongitude>sample string 7</LatitudeLongitude>
      <Location>sample string 5</Location>
      <PreviewText>sample string 2</PreviewText>
      <Price>sample string 6</Price>
      <Title>sample string 1</Title>
      <Url>sample string 4</Url>
    </EventItemAddDto>
  </EventItemAdds>
  <IsActive>true</IsActive>
  <WebSiteID>f9f64d2d-9c80-4dcd-8ac4-5647684906f5</WebSiteID>
</EventAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"IsActive":true,"EventCategoryID":"d5fb10da-89b4-4d1e-9132-d5965854222b","WebSiteID":"f9f64d2d-9c80-4dcd-8ac4-5647684906f5","EventItemAdds":[{"Title":"sample string 1","PreviewText":"sample string 2","Detail":"sample string 3","Url":"sample string 4","Location":"sample string 5","Price":"sample string 6","LatitudeLongitude":"sample string 7","EventStartDate":"2025-12-11T17:29:09.4862547+03:00","EventEndDate":"2025-12-11T17:29:09.4862547+03:00","LanguageID":"8a0803c1-6742-4ea7-b407-587b61db1cd2","EventID":"a54b20c0-8aec-4b70-9ccb-1c42015fcf54"},{"Title":"sample string 1","PreviewText":"sample string 2","Detail":"sample string 3","Url":"sample string 4","Location":"sample string 5","Price":"sample string 6","LatitudeLongitude":"sample string 7","EventStartDate":"2025-12-11T17:29:09.4862547+03:00","EventEndDate":"2025-12-11T17:29:09.4862547+03:00","LanguageID":"8a0803c1-6742-4ea7-b407-587b61db1cd2","EventID":"a54b20c0-8aec-4b70-9ccb-1c42015fcf54"}],"CoverPhotoID":"5a017938-9ef4-4cfb-aae8-0bceaec9089b"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.