Eventos
Crear o editar un evento
Si se envía _id en el cuerpo, actualiza el nombre y la fecha del evento existente. Si no se envía _id, crea un nuevo evento. Requiere el permiso EV_POST.
post/events
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/events
- AuthHTTP bearer
Request body
Example request
{
"_id": "507f1f77bcf86cd799439099",
"name": "Cena de Gala",
"date": "2024-12-31T20:00:00.000Z"
}Response
Evento creado o actualizado exitosamente
Example response
{
"_id": "507f1f77bcf86cd799439099",
"business": "507f1f77bcf86cd799439012",
"name": "Cena de Gala",
"date": "2024-12-31T20:00:00.000Z",
"createdBy": "507f1f77bcf86cd799439050",
"createdOn": "2024-01-15T10:30:00.000Z",
"modifiedOn": "2024-06-20T08:00:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.