events.createEvent

Syntax

int events.createEvent ( int vhost, string name, array additionalInfo = array() )

Argument Info

NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe vhost ID that you want the event to be a member of.
namestringRequirednoneThe name you want the event to have.
additionalInfoarrayOptionalarray()

additionalInfo

additionalInfo is an array that consists of the information to store in your event.

NameTypeRequiredDefaultPossible ValuesDescription
emailstringno email@example.comEmail address for uploading media to event.
descriptionstringno stringA description of the event (searchable).
logointno05000333A media ID for the event logo.
urlstringno http://example.comThe url for the event.
createdByintno14155555The UID of the user who created the event.
notestringno stringSome text about the event (not searchable).
geo_longitudefloatno0-52.44The longitude of the event.
geo_latitudefloatno062.86The latitude of the event.
moderationStatusstringnounmoderatedunmoderated, accepted, denied, deleted, notdenied, moderated, allModeration status when created.
addressstringno stringThe address of the event.
citystringno TorontoA city the event is associated with.
countrystringno CA, USThe 2-letter country code.
statestringno ONThe 2-letter state/province code.
postalcodestringno M1M1M1A valid postal code.
otherarrayno {'key': 'value'}Additional information about the event.
custom1stringno stringA searchable custom field.
startDatetimestampno0000-00-00 00:00:002012-02-15 00:00:00Event start date and time.
endDatetimestampno0000-00-00 00:00:002012-03-25 14:10:11Event end date and time.
parentGroupintno09499The ID of the parent event (0 for top-level).

Response

The response contains the ID of the newly created event.

NameTypeDescription
resultINTThe ID of the newly created event.

Return Values

FieldDescriptionPossible Values