Skip to main content

FS Garage Utilisation (BE) API Reference

Authentication​

PocketBase users + collection rules. Custom routes follow existing Garage auth patterns.

Base URL​

http://127.0.0.1:8091

Target custom endpoints​

MethodPathHookPurpose
POST/api/allocations/copy-forwardallocations.pb.jsDraft next week from last published
POST/api/allocations/publishallocations.pb.jsMark week rows published
POST/api/utilisation/runutilisation.pb.jsPull TS + compute + upsert snapshot
GET/api/utilisation/scorecardutilisation.pb.jsReturn snapshot + sparklines

Also relevant existing pattern: GET /api/ceo-report in weekly_hook.pb.js.

Bridge IDs​

Garage fieldMaps to
users.timesheet_user_idTimesheet user _id
projects.timesheet_project_idTimesheet project _id

Error Responses​

Return { error, code, details } per docs/UX.md.

Next Steps​