list_leave_periods
Retrieve leave periods for a week or date range before logging time, so you can avoid days already marked as leave.
Instructions
List leave periods over a week or a period. Useful before logging time: Gryzzly refuses a declaration on a day already declared as leave.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of an explicit period. | |
| from | No | First day of an explicit period. | |
| week | No | A week: `this week`, `last week`, `2026-W38`, or a date inside it. | |
| limit | No | How many objects to return. Upstream maximum is 1000. | |
| users | No | Whose leaves to read, by name, email or id. Defaults to everyone. | |
| offset | No | How many objects to skip, for the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Set when the answer is worth a word of explanation. | |
| count | Yes | How many objects match the filters upstream, beyond this page. | |
| items | Yes | The objects. | |
| returned | Yes | How many objects this answer carries. |