Calendar API

I understand that I can create a calendar schedule by generating a .ics file and importing it into traccar.
but I didn't find out how to do this using the API.
Ex:

{
     "id": -55647132,
     "name": "amet ad magna",
     "data": "what is the formatting of the data here",
     "attributes": {}
}

I want to inform you that the event will be generated every day from 07:00 to 19:00
how to format the data?

Anton Tananaev2 years ago

Data should be in the ICS format.

in that format?

{
     "id": -55647132,
     "name": "amet ad magna",
     "data": "BEGIN:VCALENDAR
                  VERSION:2.0
                  PRODID:-//hacksw/handcal//NONSGML v1.0//EN
                  BEGIN:VEVENT
                  UID:uid1@example.com
                  DTSTAMP:19970714T170000Z
                  ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
                  DTSTART:19970714T170000Z
                  DTEND:19970715T040000Z
                  SUMMARY:Bastille Day Party
                  GEO:48.85299;2.36885
                  END:VEVENT
                  END:VCALENDAR",
     "attributes": {}
}
Anton Tananaev2 years ago

Something like that.

thanks.