Mark a participant task as complete
Records a TripTaskCompletion for the authenticated participant. If the task requires_approval, the row is saved with status=completed (pending leader review); otherwise it auto-promotes to status=approved. Tasks gated by an unsatisfied dependency return 422; already-approved tasks return 400. Trip stat caches are invalidated on save.
Authorizations
Legacy session-id header retained for backwards compatibility with older first-party clients. New integrations should prefer bearerAuth or apiKeyAuth.
Path Parameters
207
512
8801
Body
Upload referencing a document the participant submitted as proof. Required (validator closure rejects null) when the task has requires_document=true. Validator rule: nullable|integer + closure that fails if requires_document and missing.
4421