POST api/AddNewEvent

Request Information

URI Parameters

None.

Body Parameters

EventDetail
NameDescriptionTypeAdditional information
EventId

integer

None.

UserId

integer

None.

EventTypeId

integer

None.

EventRelationId

integer

None.

Event_Date

string

None.

Event_Venue

string

None.

Website_Theme

string

None.

BrideName

string

None.

GroomName

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

CreatedById

integer

None.

CreatedOn

date

None.

ModifiedById

integer

None.

ModifiedOn

date

None.

EventList

Collection of SelectListItem

None.

Request Formats

application/json, text/json

Sample:
{
  "EventList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "EventId": 1,
  "UserId": 2,
  "EventTypeId": 3,
  "EventRelationId": 4,
  "Event_Date": "sample string 5",
  "Event_Venue": "sample string 6",
  "Website_Theme": "sample string 7",
  "BrideName": "sample string 8",
  "GroomName": "sample string 9",
  "IsActive": true,
  "IsDeleted": true,
  "CreatedById": 12,
  "CreatedOn": "2026-02-24T20:30:20.0411501+05:30",
  "ModifiedById": 14,
  "ModifiedOn": "2026-02-24T20:30:20.0411501+05:30"
}

application/xml, text/xml

Sample:
<EventDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity">
  <CreatedById>12</CreatedById>
  <CreatedOn>2026-02-24T20:30:20.0411501+05:30</CreatedOn>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedById>14</ModifiedById>
  <ModifiedOn>2026-02-24T20:30:20.0411501+05:30</ModifiedOn>
  <BrideName>sample string 8</BrideName>
  <EventId>1</EventId>
  <EventList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </EventList>
  <EventRelationId>4</EventRelationId>
  <EventTypeId>3</EventTypeId>
  <Event_Date>sample string 5</Event_Date>
  <Event_Venue>sample string 6</Event_Venue>
  <GroomName>sample string 9</GroomName>
  <UserId>2</UserId>
  <Website_Theme>sample string 7</Website_Theme>
</EventDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
UserId

string

None.

Method

string

None.

EventId

string

None.

EventTypeId

string

None.

Message

string

None.

ErrorMessage

string

None.

EventRelationId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "Method": "sample string 2",
  "EventId": "sample string 3",
  "EventTypeId": "sample string 4",
  "Message": "sample string 5",
  "ErrorMessage": "sample string 6",
  "EventRelationId": 7
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity">
  <ErrorMessage>sample string 6</ErrorMessage>
  <EventId>sample string 3</EventId>
  <EventRelationId>7</EventRelationId>
  <EventTypeId>sample string 4</EventTypeId>
  <Message>sample string 5</Message>
  <Method>sample string 2</Method>
  <UserId>sample string 1</UserId>
</Response>