Calendar

Частично изменить событие или одно вхождение серии

Отсутствующие и null-поля не меняются. Параметр occurrence выбирает одно вхождение повторяющейся серии.

patch/api/v1/calendar/events/{id}

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/calendar/events/{id}
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Query parameters

occurrencestring

ISO-время вхождения либо occurrence_id вида <UUID серии>:<ISO-время>; без параметра меняется вся серия

Request body

ownerinteger nullable
titlestring nullable
descriptionstring nullable
locationstring nullable
starts_atstring nullable
ends_atstring nullable
timezonestring nullable
all_dayboolean nullable
importantboolean nullable
visibility'private' | 'public' | 'null' nullable
busy_status'busy' | 'free' | 'null' nullable
recurrence_freq'none' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'null' nullable
recurrence_intervalinteger nullable
recurrence_daysinteger[] nullable
recurrence_month_dayinteger nullable
recurrence_untilstring nullable
recurrence_countinteger nullable
status'confirmed' | 'cancelled' | 'tentative' | 'null' nullable
payloadobject nullable
export_targetstring nullable

local либо <UUID подключения>/<календарь>: календарь — его адрес (url) или id из selected_calendars подключения (GET /api/v1/calendar/connectors), можно с кодированием, как в форме, или коротким последним сегментом адреса (UUID коллекции iCloud). Сервер хранит каноничную запись формы. Подключение должно выгружать события (direction both или export), календарь — быть включён и доступен для записи; иначе 400 calendar.export_target_unavailable, нераспознанная запись — 400 calendar.export_target_format.

calendar_sourcestring nullable
conference_urlstring nullable

Пустая строка убирает видеовстречу. Новая ссылка без conference_provider считается вставленной вручную (link).

conference_provider'' | 'telemost' | 'personal' | 'link' | 'null' nullable
conference_idstring nullable

Response

Изменённое событие

oktrue required
idstring uuid required
titlestring required
starts_atstring required
ends_atstring required

Example response

{
  "item": {
    "timezone": "Europe/Moscow"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.