Create Event
Creates an event in The Events Calendar, as a draft unless status is "publish". Needs a title, a start and an end, read in the event's timezone (the site's unless timezone is given); optionally all-day, a description, a venue, organizers, categories, a cost and a website. Saved through The Events Calendar's own API, so its calendar tables, caches and integrations update as if the event had been added in the admin. Returns the event as now stored. Undo by moving the event to the trash in the admin. Venue IDs come from mosmcp/tec-create-venue, or from the venue mosmcp/tec-get-event shows on an existing event.
Also known as: add an event, new event, schedule an event, put something on the calendar.
| Property | Value |
|---|---|
| Ability slug | mosmcp/tec-create-event |
| Wire tool name | mosmcp__tec-create-event |
| Category | The Events Calendar (mosmcp-events-calendar) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_tribe_events |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string (min length 1) | Yes | — | The event title. |
| start | string | Yes | — | When it starts: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event. |
| end | string | Yes | — | When it ends: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event. Not before the start. |
| all_day | boolean | — | Whether it runs all day. All-day events take only the dates of start and end. | |
| timezone | string | — | The event's timezone, a name such as "Europe/London" or "America/New_York", or "UTC". Start and end are read in it. Defaults to the site's timezone. | |
| description | string | — | What the event is about. HTML is saved the way the editor saves it for this user. | |
| venue_id | integer (min 0) | — | The venue it takes place at, from mosmcp/tec-create-venue or an existing event. | |
| organizer_ids | integer[] | — | Organizer IDs, from an existing event's organizers. | |
| categories | string[] | — | Event categories by name, slug or ID. Categories must already exist. | |
| cost | number (min 0) | — | The price to attend, as a number; 0 shows as free. | |
| currency_symbol | string (max length 10) | — | The currency symbol shown with the cost, for example "$" or "€". | |
| currency_position | string (one of prefix, suffix) |
— | Whether the symbol goes before or after the cost. | |
| website | string | — | The event's own website, a full http or https address. | |
| featured | boolean | — | Whether the event is featured, which highlights it in calendar views. | |
| status | string (one of draft, pending, publish) |
draft |
Publishing status. Defaults to "draft", so nothing appears on the site until it is published. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| event_id | integer | Yes | |
| title | string | Yes | |
| status | string | Yes | |
| description | string | The description as plain text, trimmed when long. | |
| excerpt | string | ||
| start | string | Yes | Start, Y-m-d H:i:s in the event's own timezone: the time visitors see on the event. |
| end | string | Yes | End, Y-m-d H:i:s in the event's own timezone. |
| timezone | string | Yes | The event's own timezone. |
| start_utc | string | ||
| end_utc | string | ||
| site_timezone | string | ||
| start_site | string | Start in the site's timezone. | |
| end_site | string | End in the site's timezone. | |
| all_day | boolean | Yes | |
| multiday | boolean | ||
| duration_minutes | integer | ||
| is_past | boolean | Whether it has already ended. | |
| venue | object | null | Where it takes place, or null when no venue is set. | |
| venue.venue_id | integer | Yes | |
| venue.name | string | Yes | |
| venue.status | string | ||
| venue.address | string | ||
| venue.city | string | ||
| venue.state_province | string | ||
| venue.zip | string | ||
| venue.country | string | ||
| venue.phone | string | ||
| venue.website | string | ||
| venue.view_url | string | ||
| organizers | object[] | ||
| organizers[].organizer_id | integer | Yes | |
| organizers[].name | string | Yes | |
| organizers[].email | string | ||
| organizers[].phone | string | ||
| organizers[].website | string | ||
| cost | string | The cost as the calendar shows it, or empty when none is set. | |
| cost_value | string | The cost as stored, without the currency symbol. | |
| currency_symbol | string | ||
| currency_position | string | "prefix" or "suffix". | |
| categories | object[] | ||
| categories[].term_id | integer | Yes | |
| categories[].name | string | Yes | |
| categories[].slug | string | ||
| tags | string[] | ||
| website | string | ||
| featured | boolean | ||
| view_url | string | ||
| edit_url | string | ||
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Create Venue |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.