Skip to main content
PATCH
Update many work sessions

Authorizations

X-API-Key
string
header
required

Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.

Query Parameters

Full-text search across the resource's search columns. Append :col1,col2 to limit which columns are searched.

filter
string

AND/OR filter expression, for example type eq 'phase' and isArchived eq false. Simple equality can also be passed as plain field parameters.

Body

application/json

Every field is optional. Only the fields you send are changed.

deliverableId
string<uuid>

Deliverable the time was logged against.

workerId
string<uuid>

Person who did the work.

shopId
string<uuid>

Department the session belongs to.

startDate
string<date-time>

When the session started, in UTC.

endDate
string<date-time> | null

When the session ended, in UTC. null means it is still open.

isEdited
boolean
default:false

true when someone has edited the session by hand.

lastUpdatedBy
string<uuid> | null

Who last changed the session.

shiftWorkHours
object | null

The shift the record was worked against. Break times are local wall-clock, not UTC.

externalSource
string | null

System the session came from, for example quickbase.

externalSync
string
default:not synced

Sync state for the external system.

Example:

"synced"

metadata
object

Free-form key-value store. No key is guaranteed to be present, and a missing key is not the same as a null one. See the resource guide for which paths populate costCode and unionCode.

Example:

Response

The updated work sessions.

values
object[]
required