API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · calendar_events

Calendar Event Schema

ID del esquema
calendar_event
Colección
calendar_events
Permisos
  • Leercalendar_event_view
  • Crearcalendar_event_create
  • Modificarcalendar_event_edit
  • Eliminarcalendar_event_delete
Relaciones

Campos

Calendar Event Schema

calendar_events4 permisos

Schema for validating calendar_event entities (collection calendar_events)

titlestringobligatorio

Event title

1–200 caracteres
descriptionstringopcional

Event description

máx. 5000 caracteresadmite null
startAtdatetimeobligatorio

Event start date-time (ISO format)

endAtdatetimeobligatorio

Event end date-time (ISO format)

allDaybooleanobligatorio

Whether this is an all-day event

showAsstringopcional

How this event should be shown in free/busy lookups (Outlook-compatible). Defaults to busy for timed events, free for all-day events.

freetentativebusyout_of_officeworking_elsewhere
admite null
visibilitystringopcional

Event visibility. PRIVATE events are only visible to their creator and listed participants (participants.userId). Outlook-style private-appointment flag.

PUBLICPRIVATE
Valor por defecto: "PUBLIC"
isFixedbooleanopcional

Appointment is fixed (FIX). Moving, resizing, deleting or leaving it requires an explicit confirmation (X-Confirm-Fixed-Event header) and either being an internal participant of the appointment or the calendar_event_fixed_manage permission; setting or clearing the flag requires the permission. Only effective when the tenant setting settings.calendar.fixedEventsEnabled is on.

solo lectura
fixedAtdatetimeopcional

Server-maintained: when the event was last marked FIX.

solo lecturaadmite null
fixedByUserIdstringopcional

Server-maintained: user who last marked the event FIX (notified when Outlook moves or cancels it).

solo lecturaadmite null
locationstringopcional

Event location

máx. 255 caracteresadmite null
participantsobject[]opcional

Event participants: internal users, CRM contact persons, or external emails

Valor por defecto: []admite null
typestringobligatorio
userpartyemail
userIduuidopcional
admite null
partyIduuidopcional
admite null
emailemailopcional
admite null
displayNamestringopcional
máx. 200 caracteresadmite null
isOrganizerbooleanopcional
admite null
responseStatusstringopcional

Zu-/Absage aus Outlook (ADR 0713). Fehlt das Feld, gilt `none` — deshalb ohne Backfill. Serverseitig gepflegt: aus der Anfrage verworfen und aus dem Bestand übernommen (`entity-hooks/calendar_event.hooks.ts`), geschrieben nur vom eingehenden Abgleich. Auswertung ausschliesslich über `participantResponse()`/`hasDeclined()` aus `@codemeta/shared`.

noneacceptedtentativedeclinednull
admite null
outlookInvitedbooleanopcional

Der interne Teilnehmer kam als Attendee einer Outlook-Besprechung herein (ADR 1158). Nur solche Einträge nimmt der eingehende Abgleich wieder heraus, wenn der Organisator die Person in Outlook auslädt. Fehlt das Feld, gilt `false` — ohne Backfill. Serverseitig gepflegt wie `responseStatus`: aus der Anfrage verworfen, aus dem Bestand übernommen.

admite null
removedParticipantKeysstring[]opcional

Grabsteine für Teilnehmer, die in Codemeta bewusst entfernt wurden — Identitätsschlüssel im Format `user:<uuid>` bzw. `email:<adresse>`. Verhindert, dass der eingehende Outlook-Abgleich sie wieder einträgt (ADR 0592). Serverseitig gepflegt: `entity-hooks/calendar_event.hooks.ts` schreibt das Feld bei jeder Änderung an `participants` neu und verwirft jeden Client-Wert.

admite null
linkedPartyIduuidopcional

Linked party/company UUID (Firma)

admite null
linkedTicketIduuidopcional→ ticket

Linked ticket UUID

admite null
linkedProjectIduuidopcional→ project

Linked project UUID

admite null
linkedOpportunityIduuidopcional

Linked opportunity UUID (Vertriebschance). Set when an appointment is created from the opportunity "Termine" tab; lists events for that opportunity.

admite null
linkedTaskIduuidopcional

Linked task UUID (ADR 0219). Typed mirror of the polymorphic referenceType:"TASK" + referenceId for symmetry with linkedProjectId/linkedTicketId/linkedOpportunityId. Readers should prefer this and fall back to (referenceType === "TASK" ? referenceId : null) for older events that only carry the polymorphic pair.

admite null
linkedPerformanceReviewIduuidopcional

Linked performance_review UUID. When set, changes to this event mirror back to review.meeting and deletion resets the review to AWAITING_MEETING.

admite null
positionIduuidopcional

ADR 0310: optional project_position this appointment is billed against, mirroring task.positionId. null = no position (free appointment). Set from the project "Termine" tab so it is clear which position (and thus billingModel flat_rate/time_and_material) time booked off this event belongs to; the positionId is carried onto the time booking when the appointment is verbucht.

admite null
serviceTypeIduuidopcional

Optional service_type UUID (Leistungstyp) planned for this appointment. Pre-fills the time booking created via "Zeit buchen" for every participant and wins over the ticket-type default (ticket_type.defaultServiceTypeId) and the personal default. Purely a default: the booking dialog stays editable, and no server path enforces it. Missing or null = no planned service type (previous behavior).

admite null
partyAddressIduuidopcional

Linked party address UUID — references an address entry within the linked party (for on-site appointments)

admite null
locationIduuidopcional

Linked internal location UUID (building/room from locations entity)

admite null
locationModestringopcional

ADR 0507: what kind of place the event happens at. CUSTOMER = address of the linked party (partyAddressId), OWN = one of the MSP own locations (ownAddressId), ONLINE = remote/video call without postal address. Missing on legacy events — readers derive it via resolveEventLocationMode().

CUSTOMEROWNONLINEnull
admite null
ownAddressIdstringopcional

ADR 0507: id of the selected own-company location (self-company party addresses[]._id as served by GET /self-company-locations). Only meaningful when locationMode = OWN.

máx. 64 caracteresadmite null
travelBeforeMinutesintegeropcional

Travel time before event in minutes (Anfahrt)

0 – 480admite null
travelAfterMinutesintegeropcional

Travel time after event in minutes (Abfahrt)

0 – 480admite null
travelAutoCalculatedbooleanopcional

True when travel times were auto-computed from party.travelConfig / OpenRouteService. Set to false to suppress future auto-updates.

admite null
travelDistanceKmnumberopcional

One-way distance in km between self-company location and customer address, captured from OpenRouteService alongside travelBeforeMinutes/travelAfterMinutes. Displayed on the Anfahrt/Abfahrt strips in the calendar.

0 – 10000admite null
referenceTypestringopcional

Polymorphic reference type (Auftrag) — same as time records. HR_TICKET links events to an internal HR-Ticket (Onboarding-Termin, Probezeit-Review, ...). TRAINING_SESSION is legacy: calendar entries of the removed Schulungsgruppen (ADR 1197). OPPORTUNITY links the event to a Vertriebschance; the dialog mirrors the id into linkedOpportunityId so the opportunity "Termine" tab and feed keep working off the typed field.

TICKETHR_TICKETPROJECTTASKCONTACT_PERSONASSETTRAINING_SESSIONOPPORTUNITY
admite null
referenceIduuidopcional

Polymorphic reference ID (Auftrag) — same as time records

admite null
assetIdsuuid[]opcional

Affected asset/device UUIDs (betroffene Geräte) — lets one appointment cover multiple assets (e.g. updating several firewalls/servers). Independent of the single "Auftrag" referenceType/referenceId, which stays the primary Vorgang (ticket/project/asset).

Valor por defecto: []admite null
linkedVehicleIdsuuid[]opcional

Reserved vehicle UUIDs (Fahrzeuge) — prevents double-booking

Valor por defecto: []admite null
driverIduuidopcional

Fleet driver UUID — set when event is a vehicle reservation

admite null
reservationStatusstringopcional

Reservation workflow status — relevant when linkedVehicleIds or linkedResourceIds is set

REQUESTEDCONFIRMEDACTIVECOMPLETEDCANCELLEDNO_SHOWnull
admite null
reservationPurposestringopcional

Purpose/reason for the reservation

máx. 500 caracteresadmite null
vehicleRequiredbooleanopcional

ADR 0836: a vehicle is needed for this appointment. Open demand while linkedVehicleIds is empty; stays true after a vehicle is assigned so that removing the vehicle re-opens the demand.

admite null
vehiclePoolGroupstringopcional

ADR 0836: preferred fleet pool (pool NAME as in vehicle.poolGroup). Hint for the dispatcher, not a constraint.

máx. 100 caracteresadmite null
managedEventIduuidopcional

ADR 0857: managed_event this room block belongs to

admite null
venueBlockTypestringopcional

ADR 0857: EVENT = the event itself; SETUP/TEARDOWN block the room without being billed ("blockiert ≠ berechnet")

EVENTSETUPTEARDOWNnull
admite null
optionRankintegeropcional

ADR 0857: rank of a REQUESTED block — 1 holds the slot, 2 waits behind it. Null on a REQUESTED block = unranked inquiry.

1 – 2admite null
optionExpiresAtdatetimeopcional

ADR 0857: when an option lapses; the next rank moves up

admite null
linkedResourceIdsuuid[]opcional

Reserved pool resource UUIDs (rooms, devices, tools) — prevents double-booking

Valor por defecto: []admite null
resourceNamestringopcional

Denormalized resource name for display

máx. 200 caracteresadmite null
resourceCategorystringopcional

Category of the linked pool resource (denormalized)

POOL_DEVICETOOLROOMnull
admite null
bookerUserIduuidopcional

User who booked the resource (may differ from event creator)

admite null
bookerUserNamestringopcional

Denormalized booker name for display

máx. 200 caracteresadmite null
resourceHalfDaystringopcional

Half-day mode for HALF_DAY booking resources

FULLMORNINGAFTERNOONnull
admite null
attendeeCountintegeropcional

Number of attendees (room bookings)

≥ 1admite null
cateringRequestedbooleanopcional

Whether catering was requested

admite null
cateringNotesstringopcional

Catering requests

máx. 1000 caracteresadmite null
setupNotesstringopcional

Room setup instructions

máx. 1000 caracteresadmite null
cancellationReasonstringopcional

Reason for cancellation

máx. 1000 caracteresadmite null
cancelledAtdatetimeopcional

When the booking was cancelled

admite null
cancelledByuuidopcional

User who cancelled the booking

admite null
linkedToolIdsuuid[]opcional

Reserved tool/equipment UUIDs (Werkzeug)

Valor por defecto: []admite null
materialsobject[]opcional

Planned materials for this event (linked to articles)

Valor por defecto: []admite null
articleIduuidobligatorio
articleNumberstringopcional
máx. 50 caracteresadmite null
articleNamestringobligatorio
1–200 caracteres
quantitynumberobligatorio
≥ 0
unitstringopcional
máx. 50 caracteresadmite null
notesstringopcional
máx. 500 caracteresadmite null
microsoftEventIdstringopcional

Microsoft Graph Calendar event ID (synced from Outlook)

admite null
iCalUIdstringopcional

Microsoft Graph iCalUId — stable, mailbox-independent meeting identifier used to deduplicate the same meeting across attendees and across event-id rotation (ADR 0168)

admite null
microsoftChangeKeystringopcional

Microsoft Graph changeKey for echo-suppression

admite null
onlineMeetingUrlstringopcional

Teams meeting join URL

admite null
isTeamsMeetingbooleanopcional

Whether this event includes a Teams meeting

admite null
isGoogleMeetbooleanopcional

Whether this event includes a Google Meet video call (ADR 1119). The organizer must have Google Calendar connected; their Google calendar hosts the meeting, Google invites the participants (subject to settings.calendar.inviteParticipants) and the join link is written back to onlineMeetingUrl. Missing or null means false.

admite null
sendInvitationsbooleanopcional

Opt-in Outlook invitation for an appointment WITHOUT Teams (ADR 1008). When true, the organizer mailbox hosts the appointment as a meeting with attendees: Exchange invites the participants (subject to the tenant policy settings.calendar.inviteParticipants) and mails their updates and cancellations — exactly like a Teams meeting, but without an online meeting. Missing or null means false. Settable only on create; a PATCH that changes the stored value is rejected.

solo lecturaadmite null
roomMailboxobjectopcional

Server-maintained (ADR 1085): the Microsoft 365 room mailbox booked by this appointment and its answer as seen in the organizer mailbox. Written only by the inbound Outlook sync; client values are ignored. Missing = the room was never seen in Outlook.

solo lecturaadmite null
emailstringopcional
máx. 320 caracteres
locationIdstringopcional
máx. 64 caracteres
responseStatusstringopcional
noneacceptedtentativedeclined
respondedAtstringopcional
máx. 64 caracteresadmite null
fallbackEventIdstringopcional
máx. 512 caracteresadmite null
fallbackChangeKeystringopcional
máx. 512 caracteresadmite null
eventTypeKeystringopcional

Key of the tenant-configured appointment type (settings.calendar.eventTypes) the appointment was created with. UI configuration only; missing or null means "no type" and the form shows every block.

Patrónadmite null
syncSourcestringopcional

Origin of the calendar event

localmicrosoftgoogle
admite null
googleContentUserIdsstring[]opcional

Internal user ids whose connected Google account wrote content into this event (ADR 1285). Server-managed; decides whether AI features may read the event.

máx. 200 elementossolo lecturaadmite null
originstringopcional

Which workflow created this event (ADR 0820). Set once at creation by the creating flow, never by the user. "repair_intake_pickup" marks the pickup appointment of a repair intake (ADR 0273 §8) — the only events that follow the repair ticket when it is reassigned. Absent on hand-made events.

repair_intake_pickupnull
admite null
lastSyncedAtdatetimeopcional

Last time this event was synced with Microsoft

admite null
appointmentNumberstringopcional

Server-assigned appointment number (sequence `calendar_event`, e.g. TRM-2026-00042). Protected — client values are ignored. Absent on appointments created before 2026-10-01.

máx. 50 caracteressolo lecturaadmite null
syncErrorstringopcional

Last outbound sync error message — cleared on the next successful sync. Written only by the worker (protected field).

máx. 2000 caracteressolo lecturaadmite null
syncStatestringopcional

Outbound sync state. `diverged` = Outlook refused a delete and still shows an appointment we removed here (ADR 0636/0661); mirrors dms_folder.syncState.

cleandivergednull
solo lecturaadmite null
recurrenceTypestringopcional

Recurrence pattern type

nonedailyweeklymonthlyyearly
admite null
recurrenceIntervalintegeropcional

Recurrence interval (e.g. every 2 weeks)

1 – 99admite null
recurrenceDaysOfWeekinteger[]opcional

Days of week for weekly recurrence (0=Sun, 1=Mon, ..., 6=Sat)

admite null
recurrenceEndDatedatetimeopcional

End date for recurrence series

admite null
recurrenceCountintegeropcional

Number of occurrences for recurrence series

1 – 365admite null
recurrenceExceptionsstring[]opcional

Occurrence dates (YYYY-MM-DD, local) deleted individually out of the series. The master document itself always sits on a LIVE occurrence — deleting the FIRST one advances startAt/endAt instead of adding an exception — so day-scoped views that do not expand the series never render a cancelled date.

admite null
participantRecurrenceExceptionsobjectopcional

Per-participant occurrence removals (ADR 0714): internal userId → local YYYY-MM-DD keys the participant took out of the series FOR THEMSELVES ONLY. Server-managed via POST /calendar_events/:id/remove-occurrence; client writes are dropped. Unlike recurrenceExceptions (the organizer list, valid for everyone) this never moves the master, so the series stays intact for the other participants. Read paths return the union as the computed field viewerRecurrenceExceptions.

solo lecturaadmite null
recurrenceSeriesIduuidopcional

UUID grouping events in the same recurrence series

admite null
remindersobject[]opcional

Reminders before event start (notification triggers)

Valor por defecto: []admite null
minutesBeforeintegerobligatorio
0 – 10080
bookingLinkIduuidopcional

Reference to the booking link used

admite null
bookingServiceIduuidopcional

Reference to the booking service

admite null
bookingCustomerFirstNamestringopcional

Customer first name (denormalized)

máx. 100 caracteresadmite null
bookingCustomerLastNamestringopcional

Customer last name (denormalized)

máx. 100 caracteresadmite null
bookingCustomerEmailemailopcional

Customer email (deduplication key for party)

máx. 254 caracteresadmite null
bookingCustomerPhonestringopcional

Customer phone in E.164-like format

máx. 30 caracteresadmite null
bookingCustomerCompanystringopcional

Customer company name

máx. 200 caracteresadmite null
bookingFormDataobjectopcional

Custom field answers from the booking form

admite null
bookingManagementTokenHashstringopcional

SHA-256 hash of the self-service management token

admite null
bookingManagementTokenExpiresAtdatetimeopcional

Expiry of the management token

admite null
bookingSourcestringopcional

How the booking was created

linkportaladmin
admite null
bookingConfirmedAtdatetimeopcional

When the booking was confirmed

admite null
bookingConfirmedBystringopcional

userId or "auto"

máx. 200 caracteresadmite null
bookingCancelledViastringopcional

Who initiated the cancellation

customeradminsystem
admite null
bookingTimezonestringopcional

IANA timezone of the customer at booking time

máx. 100 caracteresadmite null
bookingLanguagestringopcional

Language the customer booked in (booking page / widget `locale`, ADR 1033). Ranks first as the recipient language of the booking mails (confirmation, reminder, follow-up); absent = party language, then tenant locale, then de.

deenesfrnlnull
admite null
bookingIpAddressstringopcional

Customer IP address (audit only, not exposed in API)

máx. 45 caracteresadmite null
bookingUserAgentstringopcional

Customer user agent (audit only, not exposed in API)

máx. 500 caracteresadmite null
bookingParticipantCountintegeropcional

Number of participants for group bookings

1 – 100admite null
bookingParticipantNamesstring[]opcional

Optional list of participant names for group bookings

admite null
bookingIsGroupSlotbooleanopcional

Whether this is a group booking slot

admite null
bookingFollowUpSentAtdatetimeopcional

When the follow-up email was sent

admite null
bookingNpsRatingintegeropcional

NPS rating (0-10) provided by customer after appointment

0 – 10admite null
bookingNpsFeedbackstringopcional

Free-text feedback from NPS follow-up

máx. 2000 caracteresadmite null
rescheduleTrackingobjectopcional

Server-maintained reschedule-policy tracking (ADR 0342, protected field). Absent on events that were never policed — readers must treat absence as crossDayMoveCount 0 (no backfill).

solo lecturaadmite null
crossDayMoveCountintegerobligatorio

Counted self cross-day moves. Approval does NOT reset this.

≥ 0
anchorStartAtdatetimeopcional

Last sanctioned start: creation, a bypass-holder move, or an approved reschedule request

admite null
logobject[]opcional

Capped audit trail of policed moves (newest last)

máx. 20 elementosadmite null
atdatetimeobligatorio
byUserIdstringobligatorio
fromStartAtdatetimeobligatorio
toStartAtdatetimeobligatorio
crossDaybooleanobligatorio

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/calendar_events — Lista, paginada y filtrable
  • GET /api/v1/calendar_events/<id> — Una entidad
  • POST /api/v1/calendar_events — Crear
  • PATCH /api/v1/calendar_events/<id> — Actualización parcial
  • DELETE /api/v1/calendar_events/<id> — Eliminación lógica
  • GET /api/v1/calendar_events/<id>/timeline — Auditoría y actividades

Búsqueda