Add time off
add_time_offRecords time off for the user or, on Pro, for an editor of a project the user owns: a vacation, sick leave or other, from a first day to a last day (a single day when no last day is given), for the whole working day or a number of minutes of each. Once approved it lowers that person's capacity in the Workload for the weeks it touches (Monday to Friday count). The user's own time off is a request (status pending, and those owners get a notification) when an owner of a project the user edits plans with the team calendar, and approved at once otherwise; time off recorded for an editor is approved. A span is at most 366 days. The note belongs to the person: only they can write it, so it is refused when the time off is for somebody else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | vacation, sick or other. Default vacation. | |
| note | No | Up to 300 characters. Only the person writes it and only they read it back. | |
| endDay | No | The last day off. Default: the first day, YYYY-MM-DD. | |
| userId | No | Whose time off it is: the user (default) or an editor of one of the user's projects (Pro). | |
| startDay | Yes | The first day off, YYYY-MM-DD. | |
| minutesPerDay | No | Minutes off each day (240 is half a working day), between 1 and the person's working day. null or missing: the whole working day. |