Request Time Off
request_time_offAsks for time off for the signed-in person, from startDate to endDate inclusive, of one of the workspace's leave types. The workspace rules apply as in the app: a type that needs advance notice refuses an earlier start and names the earliest date that works, a type that needs no approval is granted at once, and otherwise the people who decide it are notified. The days are counted from the person's working week and holidays unless days is given (0.5 for half a day). Each requestKey files at most one request. Handles "take Friday off" or "request vacation the week of the 24th".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The days the request is for, when not the working days in the range (0.5 for half a day). | |
| notes | No | A note for whoever decides it. | |
| userId | No | Not needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose time off this is. | |
| endDate | No | Last day off, YYYY-MM-DD, inclusive. Defaults to startDate. | |
| leaveType | Yes | The leave type key, such as vacation or sick, from the workspace's leave types. | |
| startDate | Yes | First day off, YYYY-MM-DD. | |
| requestKey | No | A caller-chosen key unique to this one request. A repeat with the same key within a day returns the first request instead of filing another. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | The call that reverses this one, with its arguments. | |
| request | No | ||
| replayed | No | True when a call with this requestKey already filed the request, so nothing new was filed |