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
Name | Value Type | Validation | Details |
---|---|---|---|
eventID | int | Required | Event ID. |
name | string | Required | min_length[3]; Event name. |
description | string | Optional | Event description. |
style | string | Required | Select one values from the predefined list with styles (ex: event-style2). |
dateType | int | Required | values[1,2]; Select hourly or all day option. |
recurrenceType | int | Optional | values[1,2,3];Used for recurrence to create many sessions. |
day | int | Optional | less_than_equal_to[7] / less_than_equal_to[32]; Depends on recurrenceType |
startDate | string | Required | rfc_date; We starting from this date. |
endDate | string | Required | rfc_date; The end date. |
startHour | string | Required | Start hour (H:i). Not required when dateType = 2 (all day). |
endHour | string | Required | End hour (H:i). Not required when dateType = 2 (all day). |
Validation
Error Field | Error Code | Error Message |
---|---|---|
eventID | 101 | Invalid eventID or no permissions. |
startDate, endDate | 102 | The date in invalid. |
startDate | 103 | The date in past is not allowed. |
endDate | 104 | The end date must be higher than start date |
startHour, endHour | 105 | The hour format is invalid. |
endHour | 106 | The end hour must higher than start hour. |
Output example
{"result": true}