Calendar

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

Changed on

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

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

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Query parameters

occurrence, string

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

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

CalendarEventPatch required

Отсутствующий ключ и null означают «не менять»; participants при наличии заменяет список целиком.

owner, integer nullable
title, string nullable
description, string nullable
location, string nullable
starts_at, string nullable
ends_at, string nullable
timezone, string nullable
all_day, boolean nullable
important, boolean nullable
participants_can_edit, boolean nullable

Участники могут править: при true любой участник встречи меняет время, место и ссылку, описание и состав участников. Остальное и сам флаг правят организатор, его руководитель по оргструктуре и администратор кабинета.

visibility, 'private' | 'public' | 'null' nullable
busy_status, 'busy' | 'free' | 'null' nullable
recurrence_freq, 'none' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'null' nullable
recurrence_interval, integer nullable
recurrence_days, integer[] nullable
recurrence_month_day, integer nullable
recurrence_until, string nullable
recurrence_count, integer nullable
status, 'confirmed' | 'cancelled' | 'tentative' | 'null' nullable
participants, CalendarParticipantInput[] nullable
payload, object nullable
export_target, string 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_source, string nullable
conference_url, string nullable

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

conference_provider, '' | 'telemost' | 'personal' | 'link' | 'null' nullable
conference_id, string nullable

Response

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

CalendarEventEnvelope required
ok, true required
item, CalendarEvent required
id, string uuid required
title, string required
starts_at, string required
ends_at, string required

Example response

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

Changes

    • info

      added the new optional request property participants_can_edit

    • info

      added the optional property item/can_edit to the response with the status

    • info

      added the optional property item/participants_can_edit to the response with the status