Create calendar
rillsoft_calendar_createCreate a calendar inside an open unit of work, optionally defining weekly shifts; omit the week to use Monday-Friday 08:00-12:00;13:00-17:00.
Instructions
Creates a calendar; without 'week' it takes the default weekly model, Monday to Friday 08:00-12:00;13:00-17:00. Inside an open unit of work only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | code of the calendar; it has to be unique across the pool, but it may stay empty | |
| name | No | name of the calendar | |
| week | No | weekly model: { sun, mon, tue, wed, thu, fri, sat } carrying shifts such as "08:00-12:00;13:00-17:00"; empty means a day off | |
| color | No | color as #RRGGBB | |
| notes | No | notes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | id of the calendar | |
| code | No | code of the calendar; missing when none is set | |
| name | No | name of the calendar | |
| outcome | Yes | what the call did |