POST InsertEvent

Request Information

URI Parameters

None.

Body Parameters

EventDetail
NameDescriptionTypeAdditional information
EventId

integer

None.

EventName

string

None.

SID

integer

None.

EventFrom

string

None.

EventTo

string

None.

EventProfile

integer

None.

EventLocation

string

None.

EventType

string

None.

FormattedEventType

string

None.

EventImpact

integer

None.

EventDescription

string

None.

CreatedDate

string

None.

Modifieddate

string

None.

Modifiedby

string

None.

IsDeleted

boolean

None.

isRepeat

boolean

None.

Repeats

string

None.

RepeatsBy

string

None.

RepeatEvery

integer

None.

Ends

string

None.

EventCity

string

None.

ImageUrl

string

None.

Charge

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

MasterEventId

string

None.

IsCustom

boolean

None.

Distance

decimal number

None.

DisplayDate

string

None.

IsSubscribed

boolean

None.

EventColor

string

None.

StartTime

string

None.

EndTime

string

None.

RowNum

integer

None.

ExcelEventType

string

None.

IsHolidayEvent

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "EventName": "sample string 2",
  "SID": 3,
  "EventFrom": "sample string 4",
  "EventTo": "sample string 5",
  "EventProfile": 6,
  "EventLocation": "sample string 7",
  "EventType": "sample string 8",
  "FormattedEventType": "sample string 9",
  "EventImpact": 10,
  "EventDescription": "sample string 11",
  "CreatedDate": "sample string 12",
  "Modifieddate": "sample string 13",
  "Modifiedby": "sample string 14",
  "IsDeleted": true,
  "isRepeat": true,
  "Repeats": "sample string 16",
  "RepeatsBy": "sample string 17",
  "RepeatEvery": 1,
  "Ends": "sample string 18",
  "EventCity": "sample string 19",
  "ImageUrl": "sample string 20",
  "Charge": "sample string 21",
  "Longitude": 22.1,
  "Latitude": 23.1,
  "MasterEventId": "sample string 24",
  "IsCustom": true,
  "Distance": 26.1,
  "DisplayDate": "sample string 27",
  "IsSubscribed": true,
  "EventColor": "sample string 29",
  "StartTime": "sample string 30",
  "EndTime": "sample string 31",
  "RowNum": 32,
  "ExcelEventType": "sample string 33",
  "IsHolidayEvent": true
}

text/html

Sample:
{"EventId":1,"EventName":"sample string 2","SID":3,"EventFrom":"sample string 4","EventTo":"sample string 5","EventProfile":6,"EventLocation":"sample string 7","EventType":"sample string 8","FormattedEventType":"sample string 9","EventImpact":10,"EventDescription":"sample string 11","CreatedDate":"sample string 12","Modifieddate":"sample string 13","Modifiedby":"sample string 14","IsDeleted":true,"isRepeat":true,"Repeats":"sample string 16","RepeatsBy":"sample string 17","RepeatEvery":1,"Ends":"sample string 18","EventCity":"sample string 19","ImageUrl":"sample string 20","Charge":"sample string 21","Longitude":22.1,"Latitude":23.1,"MasterEventId":"sample string 24","IsCustom":true,"Distance":26.1,"DisplayDate":"sample string 27","IsSubscribed":true,"EventColor":"sample string 29","StartTime":"sample string 30","EndTime":"sample string 31","RowNum":32,"ExcelEventType":"sample string 33","IsHolidayEvent":true}

application/xml, text/xml

Sample:
<EventDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Events">
  <Charge>sample string 21</Charge>
  <CreatedDate>sample string 12</CreatedDate>
  <DisplayDate>sample string 27</DisplayDate>
  <Distance>26.1</Distance>
  <EndTime>sample string 31</EndTime>
  <Ends>sample string 18</Ends>
  <EventCity>sample string 19</EventCity>
  <EventColor>sample string 29</EventColor>
  <EventDescription>sample string 11</EventDescription>
  <EventFrom>sample string 4</EventFrom>
  <EventId>1</EventId>
  <EventImpact>10</EventImpact>
  <EventLocation>sample string 7</EventLocation>
  <EventName>sample string 2</EventName>
  <EventProfile>6</EventProfile>
  <EventTo>sample string 5</EventTo>
  <EventType>sample string 8</EventType>
  <ExcelEventType>sample string 33</ExcelEventType>
  <FormattedEventType>sample string 9</FormattedEventType>
  <ImageUrl>sample string 20</ImageUrl>
  <IsCustom>true</IsCustom>
  <IsDeleted>true</IsDeleted>
  <IsHolidayEvent>true</IsHolidayEvent>
  <IsSubscribed>true</IsSubscribed>
  <Latitude>23.1</Latitude>
  <Longitude>22.1</Longitude>
  <MasterEventId>sample string 24</MasterEventId>
  <Modifiedby>sample string 14</Modifiedby>
  <Modifieddate>sample string 13</Modifieddate>
  <RepeatEvery>1</RepeatEvery>
  <Repeats>sample string 16</Repeats>
  <RepeatsBy>sample string 17</RepeatsBy>
  <RowNum>32</RowNum>
  <SID>3</SID>
  <StartTime>sample string 30</StartTime>
  <isRepeat>true</isRepeat>
</EventDetail>

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

Response Information

Resource Description

ResponseOfEventSubscription
NameDescriptionTypeAdditional information
Message

string

None.

Status

boolean

None.

Body

EventSubscription

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": true,
  "Body": {
    "EventId": 1,
    "Action": 2,
    "IsCustom": true
  }
}

text/html

Sample:
{"Message":"sample string 1","Status":true,"Body":{"EventId":1,"Action":2,"IsCustom":true}}

application/xml, text/xml

Sample:
<ResponseOfEventSubscriptionqCs14Pcc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Common">
  <Body xmlns:d2p1="http://schemas.datacontract.org/2004/07/PGH.NxtGN.BO.Events">
    <d2p1:Action>2</d2p1:Action>
    <d2p1:EventId>1</d2p1:EventId>
    <d2p1:IsCustom>true</d2p1:IsCustom>
  </Body>
  <Message>sample string 1</Message>
  <Status>true</Status>
</ResponseOfEventSubscriptionqCs14Pcc>