Create reservation
glpi_create_reservationCreate a reservation for a GLPI item by specifying the reservation item ID from the item list, along with begin and end times in 'YYYY-MM-DD HH:MM:SS' format.
Instructions
Book a reservable item. begin/end use 'YYYY-MM-DD HH:MM:SS'. reservationitems_id comes from glpi_list_reservation_items (not the asset ID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End, 'YYYY-MM-DD HH:MM:SS' | |
| begin | Yes | Start, 'YYYY-MM-DD HH:MM:SS' | |
| comment | No | ||
| users_id | No | User the booking is for | |
| reservationitems_id | Yes | ReservationItem ID (see glpi_list_reservation_items) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| replayed | No | True when an identical recent create was returned instead of repeated |