calendar API no longer works after update

Currently reading
calendar API no longer works after update

4
0
NAS
DS718+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
I am dealing with the same issue.
Did you get it solved? If so, would you post an update here?

I did a bunch of debugging, up to a point where it all seems a shot in the dark.
Unfortunately Synology-Support is not helpful either.
 
Some more info on the error codes for the Synology Calendar API:

JSON:
{
    "9001":"error:exceed_attach_quota",
    "9002":"error:exceed_event_quota",
    "9003":"error:copy_to_sub_event_failed",
    "9004":"error:update_newer_version_event",
    "9005":"error:update_non_existent_event",
    "9006":"error:database_operation_failed",
    "9007":"error:no_permission",
    "9008":"error:daemon_connnect_failed",
    "9009":"error:invalid_parameter",
    "9010":"error:apply_setting_failed",
    "9011":"error:default_fail_handler",
    "9012":"error:edit_event_failed",
    "9013":"error:socket_connect_failed",
    "9014":"error:invalid_ics_data",
    "9015":"error:version_mismatch",
    "9016":"error:deprecate_api",
    "9017":"error:fake_email_converting",
    "9018":"error:email_is_duplicated",
    "9019":"error:team_contact_upgrading",
    "9020":"error:fake_email_update_failed",
    "9021":"error:repeated_event_boundary_backfilling",
    "9022":"error:repeated_event_boundary_backfill_failed"
}
 
I found the required parameters. Take a special note of the last two, they need a value with at least an empty array [ ].
And dtstart and dtend now need a timestamp.

JSON:
api: SYNO.Cal.Event
method: create
version: 5
cal_id: "/SomeUser/sdfghjkl/"
original_cal_id: "/SomeUser/sdfghjkl/"
summary: "test"
is_all_day: false
tz_id: "Europe/Amsterdam"
dtstart: 1715583600
dtend: 1715587200
is_repeat_evt: false
color: ""
description: ""
participant: []
notify_setting: []
 
Calendar issues reported recently by Community users...
ZjK46n3.png


I suggest you open a support ticket.
 
With the new parameters and dtstart and dtend as timestamp it works fine. But with the method „set“ always the error 9009 comes up. Any ideas ?
 
Last edited:
Yes I figured it out.

For set you'll need at least the parameters below.
It's required to add the current dav_etag, which you first must retrieve via get.

JSON:
api: SYNO.Cal.Event
method: set
version: 5
evt_id: 102293
cal_id: "/User/xntphmr/"
original_cal_id: "/User/xntphmr/"
summary: "Some summary"
color: ""
description: ""
dav_etag: "aqveyjqyewhpecenzujahpjipqcjvhqr"
is_all_day: false
tz_id: "Europe/Amsterdam"
dtstart: 1716188400
dtend: 1716192000
is_repeat_evt: false
repeat_setting: null
participant: []
notify_setting: []
location_info: {"address":"","gps":{"lat":-1,"lng":-1},"map_type":"","name":"","place_id":""}
attachments: []

The trick is to inspect your browser's network traffic while using the Calendar-browser-app (Synology Calendar GUI).
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top