Update Event
Updates an event and its post. Send the full event: every required field is validated again.
When calendar_id changes, every guest row moves with the event and fluent_event/event/calendar_changed fires. When start_at changes, the reminder emails are rescheduled and sent again for the new time. Keys of meta you leave out keep their stored values.
Endpoint
- Method:
PATCH - Path:
/fluent-event/v2/events/{id} - Controller:
EventController@updateEvent - Route source:
fluent-event/app/Http/Routes/api.php:57 - Controller source:
fluent-event/app/Http/Controllers/EventController.php:120
Permissions
- Requires the
manage_optionscapability (a site administrator). FluentEvent has no separate staff roles: its admin API is for administrators only.
Hooks Fired
Live sample
The request and response below were recorded on a running FluentEvent site and then anonymised. Names, emails and event titles are fictional, and long lists are cut to a few items.
Update Event
Updates an event and its post. Send the full event: every required field is validated again.
Controller: EventController@updateEvent
Route source: fluent-event/app/Http/Routes/api.php:57
Authorizations
A WordPress username and an Application Password.
Parameters
Path Parameters
Record ID.
1Request Body
Responses
Success