Skip to main content
EMS Software, LLC

UpdateEventDate (Requires Advanced API Option)

Description

Allows you to add an Event

 

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

EventDetailID

EventDetailID

Integer

EventDate

Event Start Date

DateTime

Title

Event Name

String

TitleURL

EventTitleUrl

String

Description

Event Description

String

TimeEventStart

Time Event Starts

DateTime

TimeEventEnd

Time Event Ends

DateTime

Location

Event Location

String

LocationURL

Event Location URL

String

IsAllDayEvent

Is Event All Day

Boolean

IsUntimed

Is Event a timed event

Boolean

NoEndTime

Event has no end time

Boolean

CustomFieldLabel1

Event Custom Field Label 1

String

CustomFieldDescription1

Event Custom Field  Description 1

String

CustomFieldUrl1

Event Custom Field Url 1

String

CustomFieldLabel2

Event Custom Field  Label 2

String

CustomFieldDescription2

Event Custom Field  Description 2

String

CustomFieldUrl2

Event Custom Field Url 2

String

EventTypeID

EventTypeID

Integer

 

Response Elements

Name

Description

Type

Message

“Success!” or error

String

 

private void UpdateEventDate()

 {

        MCAPI.MCAPIService svc = new MCAPI.MCAPIService();         svc.Url = "http://yourserver/MCAPI/MCAPIService.asmx?WSDL";

        

            StringReader sr = new StringReader(svc.AddEventDate("username", "pwd",

eventDetailId, “1/1/1900”, "Test API Event","", "This is a test api description", “1/1/1900   

00:00”, “1/1/1900    00:00”, "Denver", "http://www.dea.com", false, false, false,  false,"","","","","","",-1));

      

       DataSet ds = new DataSet();

        

        System.Xml.XmlDocument doc = new System.Xml.XmlDocument();         doc.LoadXml(sr.ReadToEnd());

        ds.ReadXml(new System.Xml.XmlNodeReader(doc));

 

 }

 

 

Example Response

<Messages>

<Message>

<Message>Success!</Message>

</Message>

</Messages>