Skip to content

API – Reservations

Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.

Resources (a room, a vehicle, other) are in GET /api/reservation-resources.

GET /api/reservations

Parameter Type Required Description
resource_id integer no
date_from date no
date_to date no
include_cancelled boolean no
$res = innovanet('GET', '/api/reservations?date_from=2026-11-05&date_to=2026-11-05');

Response 200 – data is an array of reservations (id, resource_id, title, user_id, start_date, end_date, start_time, end_time).

A free slot, nothing is written: GET /api/reservations/check-overlap?resource_id=3&start_date=2026-11-06&end_date=2026-11-06&start_time=10:00&end_time=11:00.

Response 200

{ "success": true, "overlap": false }

overlap is at the root, not in data.

POST /api/reservations

Field Type Required Description
resource_id integer yes an existing resource
title string yes at most 500
start_date date yes YYYY-MM-DD
end_date date yes not earlier than the start
start_time string yes HH:MM
end_time string yes later than the start on the same day

Request

{
  "resource_id": 3,
  "title": "Porada",
  "start_date": "2026-11-06",
  "end_date": "2026-11-06",
  "start_time": "10:00",
  "end_time": "11:00"
}

cURL

curl -sS -X POST "https://api.innovanet.com/api/reservations" \
  -H "Authorization: Bearer inv_mcp_…" \
  -H "Content-Type: application/json" \
  -d "{\"resource_id\":3,\"title\":\"Porada\",\"start_date\":\"2026-11-06\",\"end_date\":\"2026-11-06\",\"start_time\":\"10:00\",\"end_time\":\"11:00\"}"

PHP

$res = innovanet('POST', '/api/reservations', [
    'resource_id' => 3,
    'title' => 'Porada',
    'start_date' => '2026-11-06',
    'end_date' => '2026-11-06',
    'start_time' => '10:00',
    'end_time' => '11:00',
]);

Response 201 – data is the created reservation. An occupied slot returns an error with text about the overlap.

Cancellation: POST /api/reservations/{id}/cancel. Update: PUT /api/reservations/{id}.

Other paths

Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.

GET /api/reservation-resources/{id}

No body.

Response 200 – Envelope { "success": true, "data": ... }.

PUT /api/reservation-resources/{id}

Body

Field Type Required
name string no
type string no
order integer no
{
  "name": "text",
  "type": "text",
  "order": 1
}
$res = innovanet('PUT', '/api/reservation-resources/1', [
    'name' => 'text',
    'type' => 'text',
    'order' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

DELETE /api/reservation-resources/{id}

No body.

Response 200 – Envelope { "success": true, "data": ... }.


Want to try this feature? Start your innovanet trial →