Updating an event uses the sameDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CristianRR94/springCommunity/llms.txt
Use this file to discover all available pages before exploring further.
multipart/form-data structure as creation: a JSON-encoded EventoDTO in the evento part, and an optional replacement image in the image part. All editable metadata fields are applied to the target event at once — the update is a full replacement of those fields, not a partial patch. If a new image is supplied it overwrites the existing one; if image is omitted the existing banner is retained.
The fields updated by this endpoint are:
nombreEvento, tipoEvento, fechaEvento, informacion, privado, oculto, and maxNumParticipantes. Participant lists (participantesEvento) and administrator lists (administradores) are not modified through this endpoint — use the dedicated participant and admin management endpoints for those operations.Endpoint
Authorization header.Content-Type:
multipart/form-data
Path Parameters
The unique numeric database ID of the event to update.
Request Parts
A JSON-encoded
EventoDTO object containing the new values for the event. Must be sent as the part named evento. The following fields are applied:nombreEvento(string, required) — The updated display name. Must not be blank. Maximum 255 characters.tipoEvento(string, optional) — Updated category or type label. Maximum 255 characters.fechaEvento(string, optional) — Updated scheduled date inYYYY-MM-DDformat. Must not be in the past if provided.informacion(string, optional) — Updated free-text description.privado(boolean, optional, defaultfalse) — Updated visibility flag.oculto(boolean, optional, defaultfalse) — Updated hidden flag.maxNumParticipantes(integer, optional, default255) — Updated participant cap. Must be between0and255inclusive.
An optional replacement banner image. If supplied, the previous image is replaced with this file. Accepted formats:
JPEG, PNG, GIF, WebP. Maximum file size: 5 MB. If omitted, the existing image is left unchanged.Response
Returns the fullEventoDTO of the updated event. See Get Event for a description of every response field.
Response Example
curl Example
Error Responses
| Status | Description |
|---|---|
400 Bad Request | A @Valid constraint on the DTO was violated — for example, nombreEvento is blank or maxNumParticipantes exceeds 255. The mensaje field will contain the first failing validation message. |
401 Unauthorized | The Authorization header is missing, the token has expired, or the token signature is invalid. |
404 Not Found | No event exists with the supplied id. |
422 Unprocessable Entity | A domain-level validation rule was violated — for example, fechaEvento is set to a past date. |