PUT ./calendars/event

Need subscription flag (for student/parent): FLAG_CAL_MEMENTO

Update an event and change all fields you want. If you change something other than name/description/style, it will recreate future sessions. The old sessions (from the past) remain unchangeble.

PUT parameters

NameValue TypeValidationDetails
eventIDintRequiredEvent ID.
namestringRequiredmin_length[3]; Event name.
descriptionstringOptionalEvent description.
stylestringRequiredSelect one values from the predefined list with styles (ex: event-style2).
dateTypeintRequiredvalues[1,2]; Select hourly or all day option.
recurrenceTypeintOptionalvalues[1,2,3];Used for recurrence to create many sessions.
dayintOptionalless_than_equal_to[7] / less_than_equal_to[32]; Depends on recurrenceType
startDatestringRequiredrfc_date; We starting from this date.
endDatestringRequiredrfc_date; The end date.
startHourstringRequiredStart hour (H:i). Not required when dateType = 2 (all day).
endHourstringRequiredEnd hour (H:i). Not required when dateType = 2 (all day).

Validation

Error FieldError CodeError Message
eventID101Invalid eventID or no permissions.
startDate, endDate102The date in invalid.
startDate103The date in past is not allowed.
endDate104The end date must be higher than start date
startHour, endHour105The hour format is invalid.
endHour106The end hour must higher than start hour.

Output example

{
"result": true
}