POST Event?SystemAPIKey={SystemAPIKey}&SiteAPIKey={SiteAPIKey}
Adds or updates an event
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| SystemAPIKey |
API Key provided by Wesley to identify your event management system |
string |
Required |
| SiteAPIKey |
API Key specific to the site in which your event management system is being used |
string |
Required |
Body Parameters
Complete Event Object
Event| Name | Description | Type | Additional information |
|---|---|---|---|
| ExternalID |
External system unique identifier |
string |
Required Max length: 255 |
| Site |
Single site object |
Site |
Required |
| Location |
Single location object |
Location |
Required |
| Organiser |
Single contact object e.g Funeral Director |
Contact |
Required |
| DateTime |
The date and time of the event e.g. YYYY-MM-DD HH:MM |
date |
Required |
| AllowDoubleBooking |
Specifies that the external system allows an overlapping booking |
boolean |
Required |
| Description |
e.g. Name of deceased |
string |
Required Max length: 255 |
| WesleyEventNo |
Wesley Event No |
integer |
None. |
Request Formats
application/json, text/json
{
"ExternalID": "sample string 1",
"Site": {
"ExternalID": "sample string 1",
"Name": "sample string 2",
"Type": "sample string 3"
},
"Location": {
"ExternalID": "sample string 1",
"Name": "sample string 2",
"TrackEmailAddress": "sample string 3"
},
"Organiser": {
"ExternalID": "sample string 1",
"Name": "sample string 2",
"CompanyName": "sample string 3",
"Phone": "sample string 4",
"Email": "sample string 5"
},
"DateTime": "2025-11-02T14:54:36.6793039+00:00",
"AllowDoubleBooking": true,
"Description": "sample string 4",
"WesleyEventNo": 1
}
application/xml, text/xml
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WesleyAPI.Models">
<AllowDoubleBooking>true</AllowDoubleBooking>
<DateTime>2025-11-02T14:54:36.6793039+00:00</DateTime>
<Description>sample string 4</Description>
<ExternalID>sample string 1</ExternalID>
<Location>
<ExternalID>sample string 1</ExternalID>
<Name>sample string 2</Name>
<TrackEmailAddress>sample string 3</TrackEmailAddress>
</Location>
<Organiser>
<CompanyName>sample string 3</CompanyName>
<Email>sample string 5</Email>
<ExternalID>sample string 1</ExternalID>
<Name>sample string 2</Name>
<Phone>sample string 4</Phone>
</Organiser>
<Site>
<ExternalID>sample string 1</ExternalID>
<Name>sample string 2</Name>
<Type>sample string 3</Type>
</Site>
<WesleyEventNo>1</WesleyEventNo>
</Event>
application/x-www-form-urlencoded
ExternalID=value&Site=value&Location=value&Organiser=value&DateTime=value&AllowDoubleBooking=value&Description=value&WesleyEventNo=value
Response Information
Resource Description
CreateEventResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| WesleyEventNo |
The Wesley EventNo. This can be null if the location has not been allocated within the wesley system. |
integer |
None. |
| Successful |
False = API Call failed, True = API was called successfully and data passed validation |
boolean |
None. |
| ErrorMessage |
Contains the description of the error e.g. Invalid API Key |
string |
None. |
Response Formats
application/json, text/json
{
"WesleyEventNo": 1,
"Successful": true,
"ErrorMessage": "sample string 2"
}
application/xml, text/xml
<CreateEventResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WesleyAPI.Models"> <ErrorMessage>sample string 2</ErrorMessage> <Successful>true</Successful> <WesleyEventNo>1</WesleyEventNo> </CreateEventResponse>