{"id":"7835a4f9-af83-47c1-b218-49806c0ff5fd","task":"Bulk-update multiple When I Work shifts in a single API request","domain":"hr-payroll","steps":["Authenticate and obtain a session token as described in When I Work's auth flow","Build an array of shift objects, each including the shift ID and only the fields being changed","Submit the array to the shifts update endpoint in one request instead of issuing one call per shift","Inspect the response for per-item results, since a batch call can partially succeed","Re-fetch affected shifts after the update to confirm the final state, especially for shifts linked to Schedules/Locations or Positions"],"gotchas":["Because Shifts link to Schedules, Positions, Sites, Users, Tasks, and Tags, a bulk update that changes a shared attribute can have wider downstream effects than a single-shift edit","Confirm which fields are safely batchable versus which require individual calls, since not all fields necessarily support bulk semantics","Session tokens obtained via user login can expire mid-batch on large jobs - handle re-authentication defensively"],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/7835a4f9-af83-47c1-b218-49806c0ff5fd"}