Update Event


Changes an existing event in The Events Calendar. Only the fields you pass change; everything else keeps its current value. Moving only the start keeps the event's length, so the end moves with it. Saved through The Events Calendar's own API, so its calendar tables stay in step. Returns each changed field's previous and new value, read back after saving. Reversible by calling again with the previous values. Get the event ID from mosmcp/tec-list-events.

Also known as: edit an event, reschedule, move an event, change the time, change the venue, publish an event.

Property Value
Ability slug mosmcp/tec-update-event
Wire tool name mosmcp__tec-update-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: true · openWorld: false

 

Input schema

Field Type Required Default Description
event_id integer (min 1) Yes — The event ID, as returned by mosmcp/tec-list-events.
title string (min length 1) — New title. Omit to keep the current one.
start string — New start: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event. Given without end, the end moves too so the event keeps its length.
end string — New end: YYYY-MM-DD HH:MM in the event's timezone, or YYYY-MM-DD for an all-day event.
all_day boolean — Whether it runs all day. All-day events take only the dates of start and end. Omit to keep the current value.
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. Omit to keep the current value.
description string — What the event is about. HTML is saved the way the editor saves it for this user. Omit to keep the current value.
venue_id integer (min 0) — The venue it takes place at. 0 removes the venue. Omit to keep the current one.
organizer_ids integer[] — The organizers, replacing the current ones. An empty list removes them all. Omit to keep them.
categories string[] — Event categories by name, slug or ID, replacing the current ones. An empty list removes them all. Omit to keep them. Categories must already exist.
cost number | null (min 0) — The price to attend, as a number; 0 shows as free. null removes the cost. Omit to keep it.
currency_symbol string (max length 10) — The currency symbol shown with the cost, for example "$" or "€". Omit to keep the current value.
currency_position string (one of prefix, suffix) — Whether the symbol goes before or after the cost. Omit to keep the current value.
website string — The event's own website, a full http or https address. An empty string removes it. Omit to keep it.
featured boolean — Whether the event is featured, which highlights it in calendar views. Omit to keep the current value.
status string (one of draft, pending, publish) — New publishing status. Omit to keep the current one.

 

Output schema

Field Type Required Description
event_id integer Yes
changed boolean Yes Whether anything was actually changed.
changes object[] Yes
changes[].field string Yes
changes[].previous string Yes
changes[].current string Yes The value now stored, read back after saving.
event object Yes
event.event_id integer Yes
event.title string Yes
event.status string Yes
event.description string The description as plain text, trimmed when long.
event.excerpt string
event.start string Yes Start, Y-m-d H:i:s in the event's own timezone: the time visitors see on the event.
event.end string Yes End, Y-m-d H:i:s in the event's own timezone.
event.timezone string Yes The event's own timezone.
event.start_utc string
event.end_utc string
event.site_timezone string
event.start_site string Start in the site's timezone.
event.end_site string End in the site's timezone.
event.all_day boolean Yes
event.multiday boolean
event.duration_minutes integer
event.is_past boolean Whether it has already ended.
event.venue object | null Where it takes place, or null when no venue is set.
event.organizers object[]
event.cost string The cost as the calendar shows it, or empty when none is set.
event.cost_value string The cost as stored, without the currency symbol.
event.currency_symbol string
event.currency_position string "prefix" or "suffix".
event.categories object[]
event.tags string[]
event.website string
event.featured boolean
event.view_url string
event.edit_url string
event.notes string[]
notes string[]

 


<< Previous Next >>
List Events

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.