Work sessions
Upsert a work session
Insert the work session, or update it when a row with a conflicting unique key already exists. update is required and lists which columns to overwrite on conflict.
PUT
Upsert a work session
Authorizations
Query Parameters
Body
application/json
Leave shiftWorkHours out and BuildingSwell fills it from the person's shop shift for startDate, stamping the shop timezone onto it. Leave metadata.costCode out and it is resolved from the deliverable, then its station, then its ancestors, then the project, then the route; if none of those carry one, the key is left off entirely.
One person can hold only one open session per deliverable. A second attempt comes back as 409.