Mobile reliable submissions (operators)¶
Audience: Operators and reviewers of the mobile field-update API
As of M2, job updates and photo uploads support idempotent retries so a field device can safely resend after a lost response without creating duplicate updates, photos, or notification events.
What clients send¶
- Optional header:
Idempotency-Key(or body fieldoperation_key) - Same key + same content → original result
- Same key + different content → HTTP 409
- Omitting the key keeps the previous web “always create” behavior
Recovery¶
Clients can look up a prior operation:
GET /api/v1/jobs/operations/{operation_key}/
Access is re-checked every time. If the user lost job access, the server does not return the stored result.
Photos¶
Photo list/upload for a job or bid now requires access to that parent record (same idea as viewing the job). Badge workers only see photos for jobs they are assigned to.
Notifications¶
The server records a durable notification intent when a job update is accepted. Actual push delivery (FCM/APNs) is a later milestone — intents alone do not send device notifications yet.
More detail¶
Repository docs (for engineers): docs/mobile/RELIABLE_SUBMISSIONS.md and docs/mobile/M2_REQUIREMENTS_CHECKLIST.md.