Replace an event
Changed onReplaces the event's content with the submitted body and returns the updated Event. A full write: the server-side requirements of create apply. Use PATCH to change only a few fields.
External id mappings (extIds) in the body are merged by key with the stored ones; pass ?mergeExtIds=false to replace them wholesale.
The acting member must be allowed to edit this event's content, otherwise 403. An unknown event uid answers 404.
Request
- Base URL: https://api.openagenda.com/v3
- URL: https://api.openagenda.com/v3/agendas/{agendaUid}/events/{eventUid}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://openagenda.com/api/auth/oauth2/authorize, token URL https://openagenda.com/api/auth/oauth2/token, scopes: events:write)
Path parameters
Numeric uid of the agenda.
Numeric uid of the event.
Query parameters
On the by-uid PUT, whether the body's extIds are merged by key with the ones already stored (true, the default) or replace them wholesale (false). A PATCH merges a non-empty extIds whatever this parameter says; an empty array clears the stored mappings.
Request body
Example request
{
"title": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"description": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"longDescription": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"conditions": {
"fr": "Concert de jazz",
"en": "Jazz concert"
}
}Response
The updated event.
Example response
{
"uid": 9876543,
"slug": "concert-de-jazz-au-parc",
"title": {
"fr": "Concert de jazz au parc",
"en": "Jazz concert in the park"
},
"description": {
"fr": "Une soirée jazz en plein air.",
"en": "An open-air jazz evening."
},
"status": 1,
"dateRange": {
"fr": "Le 20 juin 2025 de 18h00 à 22h00",
"en": "June 20, 2025, 6:00 PM – 10:00 PM"
},
"featured": false,
"image": {
"width": 1200,
"height": 800,
"src": "https://img.openagenda.com/u/1080x0/main/9876543.full.image.jpg",
"srcTemplate": "https://img.openagenda.com/u/{geo}/main/9876543.full.image.jpg",
"srcset": [
{
"width": 640,
"url": "https://img.openagenda.com/u/640x0/main/9876543.full.image.jpg"
},
{
"width": 1080,
"url": "https://img.openagenda.com/u/1080x0/main/9876543.full.image.jpg"
}
]
},
"imageCredits": "Ville de Lyon",
"keywords": {
"fr": [
"jazz",
"concert",
"plein air"
],
"en": [
"jazz",
"concert",
"open air"
]
},
"originAgenda": {
"uid": 12345,
"title": "Festival des Lumières",
"slug": "festival-des-lumieres",
"image": {
"src": "https://img.openagenda.com/u/400x0/main/a1b2c3d4e5f60718293a4b5c6d7e8f90.full.image.jpg",
"srcTemplate": "https://img.openagenda.com/u/{geo}/main/a1b2c3d4e5f60718293a4b5c6d7e8f90.full.image.jpg"
},
"url": "https://openagenda.com/festival-des-lumieres",
"official": true
},
"rights": {
"license": {
"id": "etalab-2.0",
"name": "Licence Ouverte 2.0",
"url": "https://www.data.gouv.fr/pages/legal/licences/etalab-2.0/"
},
"licensor": {
"name": "Ville de Lyon",
"url": "https://www.lyon.fr",
"agendaUid": 12345
},
"publisher": {
"name": "Ville de Lyon",
"url": "https://www.lyon.fr",
"agendaUid": 12345
}
},
"canonicalUrl": "https://www.lyon.fr/evenement/concert-de-jazz-au-parc",
"timings": [
{
"begin": "2025-06-20T18:00:00+02:00",
"end": "2025-06-20T22:00:00+02:00"
}
],
"location": {
"uid": 55512,
"name": "Parc de la Tête d'Or",
"address": "Place Général Leclerc",
"city": "Lyon",
"region": "Auvergne-Rhône-Alpes",
"postalCode": "69006",
"countryCode": "FR",
"latitude": 45.7772,
"longitude": 4.8558,
"district": null,
"department": "Rhône",
"adminLevel3": null,
"adminLevel5": null,
"country": {
"fr": "France",
"en": "France"
},
"timezone": "Europe/Paris"
},
"timezone": "Europe/Paris",
"attendanceMode": 1,
"onlineAccessLink": null,
"firstTiming": {
"begin": "2025-06-20T18:00:00+02:00",
"end": "2025-06-20T22:00:00+02:00"
},
"lastTiming": {
"begin": "2025-06-20T18:00:00+02:00",
"end": "2025-06-20T22:00:00+02:00"
},
"nextTiming": {
"begin": "2025-06-20T18:00:00+02:00",
"end": "2025-06-20T22:00:00+02:00"
},
"additionalFields": {},
"longDescription": {
"fr": "Un concert en plein air avec plusieurs formations de jazz…",
"en": "An open-air concert featuring several jazz ensembles…"
},
"conditions": {
"fr": "Entrée libre",
"en": "Free entry"
},
"country": {
"fr": "France",
"en": "France"
},
"registration": [
{
"type": "link",
"value": "https://openagenda.com/festival-des-lumieres/events/concert-de-jazz-au-parc"
}
],
"createdAt": "2025-03-12T11:30:00+01:00",
"updatedAt": "2025-05-28T16:45:00+02:00",
"accessibility": {
"hi": false,
"ii": false,
"vi": true,
"pi": false,
"mi": true
},
"age": {
"min": 0,
"max": null
},
"state": 2,
"links": [
{
"link": "https://example.org/jazz-au-parc",
"data": {}
}
],
"extIds": [
{
"key": "legacy",
"value": "4421007"
}
],
"sourceAgendas": []
}Changes
- info
added the new optional request property
// - info
added the optional property
to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the optional property
///to the response with the status - info
added the optional property
///////to the response with the status
- info