Cronicle
Cronicle copied to clipboard
Questions about API
Hi,
I have 2 questions about the api support in Cronicle
:
- Is it possible to create a scheduled task with a cron expression through the API? For example:
curl -X post http://localhost/api/app/create_event/v1 -d '{"title": "test",...,"cron":"0 0 12 * *}'
- Is it possible to create a scheduled task via API that will run every month on the last Friday for example?
Do you plan to support
L
flag which represent the last day of the month?
For example:
curl -X post http://localhost/api/app/create_event/v1 -d '{"title": "test",...,"timing":{"hours":"3","weekdays":"6L",""}}'
Cron syntax support in the API is coming in v2, most definitely! It's on my TODO list as a required feature. Estimated release of v2 is early 2024.
I did not know about the "L" flag. I just read about it now. I will try to fit it in!
Thank you @jhuckaby for your quick reply, looking forward for the new api v2 release.