Spatial Work Session API
Complete REST API for managing spatial work sessions with AR markers, real-time presence tracking, and collaborative editing features.
Work Sessions and Markers use optimistic locking via the version field:
// 1. Get current version
GET /work-sessions/{id}
// Response: { "version": 1, ... }
// 2. Update with version
PATCH /work-sessions/{id}
{ "status": "done", "version": 1 }
// 3. If version mismatch → 409 Conflict
All work session responses include a marker_count field showing the number of markers in that session. This is calculated server-side for optimal performance.