This is not supported by the backend yet, but it was not available before either.
RSVP to an event
An event can be accepted, declined or tentatively accepted by the user. This is done by sending a POST request to the following endpoints:
fetch("https://sync.morgen.so/v1/events/<RSVP_ACTION>?seriesUpdateMode=<UPDATE_MODE>", {
method: "POST",
headers: {
"accept": "application/json",
"Authorization": "ApiKey <API_KEY>"
},
body: JSON.stringify({"id": <EVENT_ID>, "comment": <COMMENT>, "notifyOrganizer": <true|false>})
});
The last segment of the URL marked with <RSVP_ACTION>
defines the action to be performed.
Possible values are:
accept
: Accept the event.decline
: Decline the event.tentativelyAccept
: Tentatively accept the event.
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
seriesUpdateMode | Query | single | No | Defines how to update recurring events. Possible values are: all (update all events), future (update this and future occurrences), single (update this event only, default). This parameter has no effect on non-recurring events. |
id | Body | - | Yes | The ID of the event to update. |
comment | Body | - | No | A comment to be sent to the organizer. |
notifyOrganizer | Body | true | No | Whether to send the response to the organizer. |
⚠️
Currently seriesUpdateMode
only supports the default value (single
).