Skip to content

Get Calendar

Tool name: get-calendar

Reads an automation date-rule calendar, its settings, dependencies and computed dates for a year. Defaults to the current year.

Input schema

idinteger, >= 1required
yearnull or integer, [ 1971 .. 9998 ]
Default:null
accountIdnull or integer, >= 1
Default:null
Input example
{ "id": 1, "year": null, "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": {} }