update_leave_period
Change an existing leave period by moving, shortening, or converting full days to half days, and optionally delete declarations over affected dates.
Instructions
Change a leave period: move it, shorten it, turn a full day into a half one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The leave period's identifier. | |
| end_at | No | A new last day. | |
| end_type | No | How much of the last day is off. | |
| start_at | No | A new first day. | |
| start_type | No | How much of the first day is off. | |
| description | No | A new description. | |
| delete_declarations | No | Delete the declarations already made over those days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The leave period's identifier. | |
| end_at | No | The last day of the leave. | |
| user_id | No | The user on leave. | |
| end_type | No | `full`, `am` or `pm`. | |
| start_at | No | The first day of the leave. | |
| edited_by | No | Who last edited the leave period. | |
| created_at | No | When the leave period was created. | |
| start_type | No | `full`, `am` or `pm`. | |
| updated_at | No | When the leave period was last updated. | |
| description | No | Why the person is away. |