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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reservationitems_id": "<reservationitems_id>",
"begin": "<begin>",
"end": "<end>"
},
"name": "glpi_create_reservation"
}
}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 |