Editing an event
Standard method
[POST/PATCH] /v2/agendas/${agendaUID}/events/${eventUID}
In brief
This route allows updating an event in the context of an agenda. This means that beyond the values of the event's standard fields, the values associated with the agenda's additional fields can be updated, as well as the state (published, to moderate...) or its featured status.
agendaUIDis the unique identifier of the agenda where the event is referenced,eventUIDis the unique identifier of the event- A write authentication via access token is required
- A
langparameter can be specified in the header (lang:fr) to simplify formatting for monolingual events - The response contains the details of the updated event under an
eventkey - The
POSTmethod should be used for full updates,PATCHfor partial updates - The data defining the event must be placed under a
datakey in the request body.
Update by external identifier
An event can be updated via an external identifier external to OpenAgenda. The same route also serves for creations when an event does not exist for the given identifier.
PUT /v2/agendas/{agendaUID}/events/ext/{key}/{value}
In brief
keyis the name of the identifier,valueis its value- If the event already exists, it will be updated
- An event can be associated with multiple external identifiers
- An event associated with one or more external identifiers retains a unique OpenAgenda
UIDidentifier.