{"openapi":"3.0.3","info":{"title":"BookSpace Partner API","version":"1.3.0","summary":"Tenant CRUD + Insights for corporate integrations","description":"Machine-to-machine API. Scope is **always the partner bound to the OAuth2 client**.\n\n**Auth:** OAuth2 `client_credentials` — same Client ID / secrets as Partners → OAuth2 (Graph calendar).\nDo **not** use the admin UI login JWT.\n\n**Limits:** 120 GET/min and 30 writes/min per partner.\nOptional `Idempotency-Key` on POST/PATCH/DELETE.\n\n**Out of scope:** creating other partners, Company ID / Display / Theme (Lante), OAuth secret rotation, password hashes, device RPC (`/api/panels/v1`).\n\nToken URL: `https://api.bookspace.me/oauth2/v2.0/token`"},"servers":[{"url":"https://api.bookspace.me/api/partner/v1","description":"api.bookspace.me"}],"tags":[{"name":"Catalogue","description":"Discovery — OpenAPI without a token"},{"name":"Account","description":"Own partner identity (no Lante-only fields)"},{"name":"Places","description":"Rooms / booths / desks of the tenant"},{"name":"Sites","description":"Buildings shared by lockers and panels"},{"name":"Lockers","description":"Smart lockers fleet and remote open"},{"name":"Panels","description":"LTP panel fleet (not the device RPC). Premium: groups, templates, jobs."},{"name":"Alarms","description":"EMS raise/clear — webhook push and HTTPS pull"},{"name":"Insights","description":"Occupancy analytics — Premium / trial"},{"name":"Users","description":"Tenant directory — never password hashes"},{"name":"Reservations","description":"Bookings with MQTT status side-effects"}],"security":[{"oauth2":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.bookspace.me/oauth2/v2.0/token","scopes":{}}}},"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"Error":{"type":"object","properties":{"ok":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"paths":{"/":{"get":{"tags":["Catalogue"],"summary":"Endpoint catalogue (no token)","description":"Endpoint catalogue (no token). Standard tenant scope.","security":[],"responses":{"200":{"description":"Endpoint catalogue (no token)"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/openapi.json":{"get":{"tags":["Catalogue"],"summary":"OpenAPI 3 specification","description":"OpenAPI 3 specification. Standard tenant scope.","security":[],"responses":{"200":{"description":"OpenAPI 3 specification"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/me":{"get":{"tags":["Account"],"summary":"Partner, Insights entitlement, Client ID","description":"Partner, Insights entitlement, Client ID. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Partner, Insights entitlement, Client ID"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Account"],"summary":"Update own partner (no Lante-only fields)","description":"Update own partner (no Lante-only fields). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Update own partner (no Lante-only fields)"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/usage":{"get":{"tags":["Account"],"summary":"API usage stats (own tenant)","description":"API usage stats (own tenant). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"API usage stats (own tenant)"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/places":{"get":{"tags":["Places"],"summary":"List tenant places","description":"List tenant places. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List tenant places"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Places"],"summary":"Create a place","description":"Create a place. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create a place"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/places/{id}":{"get":{"tags":["Places"],"summary":"Place detail","description":"Place detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Place detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Places"],"summary":"Update a place","description":"Update a place. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update a place"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Places"],"summary":"Delete / deactivate a place","description":"Delete / deactivate a place. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Delete / deactivate a place"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/places/{id}/availability":{"get":{"tags":["Places"],"summary":"Availability in from/to range","description":"Availability in from/to range. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Availability in from/to range"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/places/{id}/occupied-slots":{"get":{"tags":["Places"],"summary":"Occupied slots","description":"Occupied slots. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Occupied slots"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/sites":{"get":{"tags":["Sites"],"summary":"Sites (lockers + panels)","description":"Sites (lockers + panels). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Sites (lockers + panels)"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Sites"],"summary":"Create a site","description":"Create a site. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create a site"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/sites/{id}":{"get":{"tags":["Sites"],"summary":"Site detail","description":"Site detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Site detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Sites"],"summary":"Update a site","description":"Update a site. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update a site"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Sites"],"summary":"Soft-delete a site","description":"Soft-delete a site. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Soft-delete a site"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/locker-banks":{"get":{"tags":["Lockers"],"summary":"Locker banks","description":"Locker banks. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Locker banks"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Lockers"],"summary":"Create bank (secret once)","description":"Create bank (secret once). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create bank (secret once)"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/locker-banks/{id}":{"get":{"tags":["Lockers"],"summary":"Bank detail","description":"Bank detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Bank detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Lockers"],"summary":"Update name / policy","description":"Update name / policy. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update name / policy"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Lockers"],"summary":"Deactivate a bank","description":"Deactivate a bank. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Deactivate a bank"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/lockers":{"get":{"tags":["Lockers"],"summary":"List lockers","description":"List lockers. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List lockers"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/lockers/{id}":{"get":{"tags":["Lockers"],"summary":"Locker detail","description":"Locker detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Locker detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Lockers"],"summary":"Label / managedStatus","description":"Label / managedStatus. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Label / managedStatus"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/lockers/{id}/open":{"post":{"tags":["Lockers"],"summary":"Remote open (audited)","description":"Remote open (audited). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Remote open (audited)"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"409":{"description":"E_LOCKER_OFFLINE / E_PANEL_OFFLINE"},"429":{"description":"E_RATE_LIMIT"}}}},"/lockers/events":{"get":{"tags":["Lockers"],"summary":"Locker events","description":"Locker events. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Locker events"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/rooms":{"get":{"tags":["Panels"],"summary":"Rooms with paired panels","description":"Rooms with paired panels. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Rooms with paired panels"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/panels":{"get":{"tags":["Panels"],"summary":"Panel fleet","description":"Panel fleet. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Panel fleet"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Panels"],"summary":"Provision panel (secret once)","description":"Provision panel (secret once). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Provision panel (secret once)"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/panels/{id}":{"get":{"tags":["Panels"],"summary":"Panel detail","description":"Panel detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Panel detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Panels"],"summary":"Name / place / active","description":"Name / place / active. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Name / place / active"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/panels/{id}/force-sync":{"post":{"tags":["Panels"],"summary":"Force MQTT sync","description":"Force MQTT sync. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Force MQTT sync"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/panels/{id}/reboot":{"post":{"tags":["Panels"],"summary":"Reboot panel","description":"Reboot panel. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Reboot panel"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/panels/{id}/rotate-secret":{"post":{"tags":["Panels"],"summary":"New secret (once)","description":"New secret (once). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"New secret (once)"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/fleet/entitlement":{"get":{"tags":["Panels"],"summary":"Premium entitlement","description":"Premium entitlement. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Premium entitlement"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/groups":{"get":{"tags":["Panels"],"summary":"Panel groups","description":"Panel groups. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Panel groups"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Panels"],"summary":"Create panel group","description":"Create panel group. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create panel group"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/groups/{id}":{"get":{"tags":["Panels"],"summary":"Group detail","description":"Group detail. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Group detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Panels"],"summary":"Update group","description":"Update group. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update group"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Panels"],"summary":"Delete group","description":"Delete group. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Delete group"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/groups/{id}/members":{"put":{"tags":["Panels"],"summary":"Set group members","description":"Set group members. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Set group members"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/templates":{"get":{"tags":["Panels"],"summary":"Config templates","description":"Config templates. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Config templates"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Panels"],"summary":"Create template","description":"Create template. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create template"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/templates/{id}":{"get":{"tags":["Panels"],"summary":"Template detail","description":"Template detail. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Template detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Panels"],"summary":"Update template","description":"Update template. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update template"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Panels"],"summary":"Delete template","description":"Delete template. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Delete template"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/jobs":{"get":{"tags":["Panels"],"summary":"Fleet jobs","description":"Fleet jobs. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Fleet jobs"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Panels"],"summary":"Create fleet job","description":"Create fleet job. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create fleet job"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/jobs/{id}":{"get":{"tags":["Panels"],"summary":"Job detail","description":"Job detail. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Job detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/jobs/{id}/ack":{"post":{"tags":["Panels"],"summary":"Ack job","description":"Ack job. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Ack job"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/jobs/{id}/items/{panelId}/cancel":{"post":{"tags":["Panels"],"summary":"Cancel job item","description":"Cancel job item. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"panelId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Cancel job item"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/fleet/diff":{"get":{"tags":["Panels"],"summary":"Fleet config diff","description":"Fleet config diff. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Fleet config diff"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/panels/events":{"get":{"tags":["Panels"],"summary":"Panel events","description":"Panel events. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Panel events"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/alarms":{"get":{"tags":["Alarms"],"summary":"EMS alarm list (pull)","description":"EMS alarm list (pull). Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"EMS alarm list (pull)"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/alarms/{id}":{"get":{"tags":["Alarms"],"summary":"Alarm detail","description":"Alarm detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Alarm detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/alarm-webhook":{"get":{"tags":["Alarms"],"summary":"Webhook config","description":"Webhook config. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Webhook config"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"put":{"tags":["Alarms"],"summary":"Set URL / HMAC / alarmIds","description":"Set URL / HMAC / alarmIds. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Set URL / HMAC / alarmIds"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/alarm-webhook/test":{"post":{"tags":["Alarms"],"summary":"Test POST to URL","description":"Test POST to URL. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Test POST to URL"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/insights/summary":{"get":{"tags":["Insights"],"summary":"Fleet KPIs, empty-air cost, walk-ins","description":"Fleet KPIs, empty-air cost, walk-ins. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Fleet KPIs, empty-air cost, walk-ins"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/rooms":{"get":{"tags":["Insights"],"summary":"Room ranking","description":"Room ranking. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Room ranking"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/sessions":{"get":{"tags":["Insights"],"summary":"Occupancy sessions","description":"Occupancy sessions. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Occupancy sessions"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/occupancy":{"get":{"tags":["Insights"],"summary":"Minute occupancy buckets","description":"Minute occupancy buckets. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Minute occupancy buckets"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/noshows":{"get":{"tags":["Insights"],"summary":"Bookings without entry (no email)","description":"Bookings without entry (no email). Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Bookings without entry (no email)"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/rooms/{placeId}/tape":{"get":{"tags":["Insights"],"summary":"Room day tape","description":"Room day tape. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Room day tape"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/rooms/{placeId}/heatmap":{"get":{"tags":["Insights"],"summary":"Room heatmap","description":"Room heatmap. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Room heatmap"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/panels/{panelId}/tape":{"get":{"tags":["Insights"],"summary":"Unpaired panel tape","description":"Unpaired panel tape. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"panelId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Unpaired panel tape"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/panels/{panelId}/heatmap":{"get":{"tags":["Insights"],"summary":"Panel heatmap","description":"Panel heatmap. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"panelId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Panel heatmap"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}}},"/insights/hourly-rate":{"post":{"tags":["Insights"],"summary":"Set PLN/h empty-booking rate","description":"Set PLN/h empty-booking rate. Requires Insights Premium or an active trial.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range start (ISO-8601)."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Range end. Max span 370 days."}],"responses":{"200":{"description":"Set PLN/h empty-booking rate"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"402":{"description":"E_INSIGHTS_LICENSE"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/users":{"get":{"tags":["Users"],"summary":"Tenant user directory","description":"Tenant user directory. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Tenant user directory"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Users"],"summary":"Invite / create a user","description":"Invite / create a user. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Invite / create a user"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/users/{id}":{"get":{"tags":["Users"],"summary":"User detail","description":"User detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"User detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Users"],"summary":"Update profile / roles","description":"Update profile / roles. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update profile / roles"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Users"],"summary":"Deactivate membership","description":"Deactivate membership. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Deactivate membership"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/users/{id}/approve":{"post":{"tags":["Users"],"summary":"Approve / reject","description":"Approve / reject. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Approve / reject"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/reservations":{"get":{"tags":["Reservations"],"summary":"List reservations","description":"List reservations. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List reservations"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"post":{"tags":["Reservations"],"summary":"Create a reservation","description":"Create a reservation. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Create a reservation"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/reservations/{id}":{"get":{"tags":["Reservations"],"summary":"Reservation detail","description":"Reservation detail. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Reservation detail"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"}}},"patch":{"tags":["Reservations"],"summary":"Update a reservation","description":"Update a reservation. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Update a reservation"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}},"delete":{"tags":["Reservations"],"summary":"Cancel a reservation","description":"Cancel a reservation. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Cancel a reservation"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}},"/reservations/{id}/approve":{"post":{"tags":["Reservations"],"summary":"Approve / reject","description":"Approve / reject. Standard tenant scope.","security":[{"oauth2":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Approve / reject"},"201":{"description":"Created"},"400":{"description":"E_VALIDATION"},"401":{"description":"Unauthorized"},"403":{"description":"E_FORBIDDEN"},"404":{"description":"E_NOT_FOUND"},"429":{"description":"E_RATE_LIMIT"}}}}}}