POST api/event/insertevent

Request Information

URI Parameters

None.

Body Parameters

Event
NameDescriptionTypeAdditional information
EventId

integer

None.

EventName

string

None.

EventType

string

None.

EventCategoryMasterId

integer

None.

EventCategoryName

string

None.

Description

string

None.

EventResorts

Collection of EventResort

None.

EventCategories

Collection of EventCategory

None.

EventLocation

Collection of EventLocation

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "EventName": "sample string 2",
  "EventType": "sample string 3",
  "EventCategoryMasterId": 4,
  "EventCategoryName": "sample string 5",
  "Description": "sample string 6",
  "EventResorts": [
    {
      "EventResortId": 1,
      "EventId": 2,
      "ResortId": 3,
      "IsChecked": true,
      "ResortName": "sample string 5",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    },
    {
      "EventResortId": 1,
      "EventId": 2,
      "ResortId": 3,
      "IsChecked": true,
      "ResortName": "sample string 5",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    }
  ],
  "EventCategories": [
    {
      "EventCategoryMasterId": 1,
      "EventCategoryName": "sample string 2",
      "Description": "sample string 3",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    },
    {
      "EventCategoryMasterId": 1,
      "EventCategoryName": "sample string 2",
      "Description": "sample string 3",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    }
  ],
  "EventLocation": [
    {
      "EventLocationId": 1,
      "EventId": 2,
      "EventTitle": "sample string 3",
      "Venue": "sample string 4",
      "CityId": 5,
      "StateId": 6,
      "CountryId": 7,
      "CityName": "sample string 8",
      "StateName": "sample string 9",
      "CountryName": "sample string 10",
      "Zipcode": "sample string 11",
      "FromDate": "2025-06-24T12:54:36.7414549+00:00",
      "ToDate": "2025-06-24T12:54:36.7414549+00:00",
      "EventContactEmailId": "sample string 14",
      "EventContactPhone": 15,
      "Coordinate": "sample string 16",
      "ImagePath": "sample string 17",
      "ImageData": "QEA=",
      "FileExtension": "sample string 18",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    },
    {
      "EventLocationId": 1,
      "EventId": 2,
      "EventTitle": "sample string 3",
      "Venue": "sample string 4",
      "CityId": 5,
      "StateId": 6,
      "CountryId": 7,
      "CityName": "sample string 8",
      "StateName": "sample string 9",
      "CountryName": "sample string 10",
      "Zipcode": "sample string 11",
      "FromDate": "2025-06-24T12:54:36.7414549+00:00",
      "ToDate": "2025-06-24T12:54:36.7414549+00:00",
      "EventContactEmailId": "sample string 14",
      "EventContactPhone": 15,
      "Coordinate": "sample string 16",
      "ImagePath": "sample string 17",
      "ImageData": "QEA=",
      "FileExtension": "sample string 18",
      "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
      "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    }
  ],
  "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
  "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
  "CreatedBy": 1,
  "ModifiedBy": 1,
  "IsActive": true,
  "IsDeleted": true
}

text/html

Sample:
{"EventId":1,"EventName":"sample string 2","EventType":"sample string 3","EventCategoryMasterId":4,"EventCategoryName":"sample string 5","Description":"sample string 6","EventResorts":[{"EventResortId":1,"EventId":2,"ResortId":3,"IsChecked":true,"ResortName":"sample string 5","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},{"EventResortId":1,"EventId":2,"ResortId":3,"IsChecked":true,"ResortName":"sample string 5","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}],"EventCategories":[{"EventCategoryMasterId":1,"EventCategoryName":"sample string 2","Description":"sample string 3","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},{"EventCategoryMasterId":1,"EventCategoryName":"sample string 2","Description":"sample string 3","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}],"EventLocation":[{"EventLocationId":1,"EventId":2,"EventTitle":"sample string 3","Venue":"sample string 4","CityId":5,"StateId":6,"CountryId":7,"CityName":"sample string 8","StateName":"sample string 9","CountryName":"sample string 10","Zipcode":"sample string 11","FromDate":"2025-06-24T12:54:36.7414549+00:00","ToDate":"2025-06-24T12:54:36.7414549+00:00","EventContactEmailId":"sample string 14","EventContactPhone":15,"Coordinate":"sample string 16","ImagePath":"sample string 17","ImageData":"QEA=","FileExtension":"sample string 18","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},{"EventLocationId":1,"EventId":2,"EventTitle":"sample string 3","Venue":"sample string 4","CityId":5,"StateId":6,"CountryId":7,"CityName":"sample string 8","StateName":"sample string 9","CountryName":"sample string 10","Zipcode":"sample string 11","FromDate":"2025-06-24T12:54:36.7414549+00:00","ToDate":"2025-06-24T12:54:36.7414549+00:00","EventContactEmailId":"sample string 14","EventContactPhone":15,"Coordinate":"sample string 16","ImagePath":"sample string 17","ImageData":"QEA=","FileExtension":"sample string 18","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}],"CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}

application/xml, text/xml

Sample:
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRG.Core">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
  <Description>sample string 6</Description>
  <EventCategories>
    <EventCategory>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <Description>sample string 3</Description>
      <EventCategoryMasterId>1</EventCategoryMasterId>
      <EventCategoryName>sample string 2</EventCategoryName>
    </EventCategory>
    <EventCategory>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <Description>sample string 3</Description>
      <EventCategoryMasterId>1</EventCategoryMasterId>
      <EventCategoryName>sample string 2</EventCategoryName>
    </EventCategory>
  </EventCategories>
  <EventCategoryMasterId>4</EventCategoryMasterId>
  <EventCategoryName>sample string 5</EventCategoryName>
  <EventId>1</EventId>
  <EventLocation>
    <EventLocation>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <CityId>5</CityId>
      <CityName>sample string 8</CityName>
      <Coordinate>sample string 16</Coordinate>
      <CountryId>7</CountryId>
      <CountryName>sample string 10</CountryName>
      <EventContactEmailId>sample string 14</EventContactEmailId>
      <EventContactPhone>15</EventContactPhone>
      <EventId>2</EventId>
      <EventLocationId>1</EventLocationId>
      <EventTitle>sample string 3</EventTitle>
      <FileExtension>sample string 18</FileExtension>
      <FromDate>2025-06-24T12:54:36.7414549+00:00</FromDate>
      <ImageData>QEA=</ImageData>
      <ImagePath>sample string 17</ImagePath>
      <StateId>6</StateId>
      <StateName>sample string 9</StateName>
      <ToDate>2025-06-24T12:54:36.7414549+00:00</ToDate>
      <Venue>sample string 4</Venue>
      <Zipcode>sample string 11</Zipcode>
    </EventLocation>
    <EventLocation>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <CityId>5</CityId>
      <CityName>sample string 8</CityName>
      <Coordinate>sample string 16</Coordinate>
      <CountryId>7</CountryId>
      <CountryName>sample string 10</CountryName>
      <EventContactEmailId>sample string 14</EventContactEmailId>
      <EventContactPhone>15</EventContactPhone>
      <EventId>2</EventId>
      <EventLocationId>1</EventLocationId>
      <EventTitle>sample string 3</EventTitle>
      <FileExtension>sample string 18</FileExtension>
      <FromDate>2025-06-24T12:54:36.7414549+00:00</FromDate>
      <ImageData>QEA=</ImageData>
      <ImagePath>sample string 17</ImagePath>
      <StateId>6</StateId>
      <StateName>sample string 9</StateName>
      <ToDate>2025-06-24T12:54:36.7414549+00:00</ToDate>
      <Venue>sample string 4</Venue>
      <Zipcode>sample string 11</Zipcode>
    </EventLocation>
  </EventLocation>
  <EventName>sample string 2</EventName>
  <EventResorts>
    <EventResort>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <EventId>2</EventId>
      <EventResortId>1</EventResortId>
      <IsChecked>true</IsChecked>
      <ResortId>3</ResortId>
      <ResortName>sample string 5</ResortName>
    </EventResort>
    <EventResort>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
      <EventId>2</EventId>
      <EventResortId>1</EventResortId>
      <IsChecked>true</IsChecked>
      <ResortId>3</ResortId>
      <ResortName>sample string 5</ResortName>
    </EventResort>
  </EventResorts>
  <EventType>sample string 3</EventType>
</Event>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.