Skip to content

Calendars

Use these tools to manage the date-rule calendars that KlickTipp automations use to plan around specific dates. A calendar combines fixed dates and recurring rules, such as holidays, quarters, months, or weeks, with the countries whose public holidays apply and the weekdays that count as business days.

For example, you can create a calendar for campaign periods or company holidays, review the dates it resolves to for a given year, check which automations rely on it, or update its rules. Creating a calendar does not attach it to an automation. Its entries are locked while active automations use it, and it cannot be deleted while any automation, including a draft, still references it. These calendars are not booking calendars or email widgets, and further calendar capabilities may be added over time.

Create Calendar

Tool name: create-calendar

Creates an automation date-rule calendar with fixed dates or relative holiday, quarter, month and week rules. Defaults to no entries or countries and Monday–Friday business days. Does not attach it to an automation.

Input schema

settingsobjectrequired
accountIdnull or integer, >= 1
Default:null
Input example
{ "settings": { "name": "string", "entries": [ { "id": 1, "name": "string", "type": 1, "from": "2019-08-24", "to": "string", "base": 1, "op": 1, "holidays": [ "string" ], "quarters": [ 1 ], "months": [ 1 ], "weeks": [ 1 ], "weekdays": [ 1 ], "nthweekday": 1, "strtotime": "string" } ], "countries": [ "DE" ], "businessdays": [ 1 ], "metalabels": [ "string" ] }, "accountId": null }

Output schema

accountIdintegerrequired
idintegerrequired
settingsobjectrequired
uiobjectrequired
yearintegerrequired
datesArray of objectsrequired
dependenciesArray of any or objectrequired

Empty list when nothing references the calendar; otherwise dependency category => automation ID => {id, type, name, editLink}.

Output example
{ "accountId": 0, "id": 0, "settings": { "name": "string", "entries": [ {} ], "countries": [ "string" ], "businessdays": [ 0 ], "metalabels": [ "string" ] }, "ui": { "id": 0, "name": "string", "type": "string", "entries": [ {} ], "countries": [ "string" ], "businessdays": [ 0 ], "holidays": {}, "isEditable": 0, "metalabels": [ "string" ] }, "year": 0, "dates": [ { "id": 0, "name": "string", "date": "2019-08-24" } ], "editLink": "string", "dependencies": {} }