Event creation via API cannot set all fields
I am creating Events using the API and cannot see how the following fields can be set (I can set these as an Administrator in the website) .....
Show registrants who want to be listed
to members only
Include pending registrations
Also I cannot see how the schedule for email announcements and reminders for an Event can be set via the API?
Status update in case someone new will see this topic:
The section “Show registrants who want to be listed” have been added to API already.
Schedule for email announcements and reminders can’t be set via API at the moment.
As a workaround, you could create a template event on the web, set the start date in the distant future and all settings you need. Then you can clone it via POST request:
The request body should be like this:
1) Yes, there is such behavior. As a workaround, you could create a template event with the start date in the distant future.
2) You can duplicate an event via API actually. There aren't any mentions of it in the help, we'll fix it in a few days.
You can use a POST request to the URL:
With the body:
Scot McConnachie commented
We are currently considering utilizing the ability to create events as part of a resource scheduling application. Being able to manage email options via the API is an expectation for us.
Note that it would be possible to indirectly manage email content and scheduling for events by administratively setting up events with such settings preset and then copying them, however this is not possible for two reasons:
1) There is a bug in Wild Apricot where duplicating past events behaves differently than duplicating future events. If a future event is duplicated then the event email messages and schedules are duplicated, however if a past event is duplicated then these settings are not duplicated. This is a bug because this different behavior is not documented and does no meet reasonable user expectations.
2) The API is missing a "duplicate event" call. In my opinion it should have such a call, partly for the mobile app in addition for other potential apps.
If it is not possible to set the schedule for Event email announcements and reminders then the API implementation is incomplete. The default setting is for NO event announcements or reminders. So the only way at the moment is to go into every event as an administrator on the website and manually setup the announcements and reminders schedule.