post
https://api.apicbase.com/api/v2/compliance/tasks/occurrences//complete/
Completes a task occurrence.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Requires permission to perform the task in the occurrence's outlet; on an occurrence that is already completed or marked not applicable it requires the permission to edit completed tasks instead.
For a full explanation of task occurrences, see Recording Task Occurrences.
Completion is refused while any of the following holds:
- a value the task type asks for is still missing
- a custom field the library marks as required is not filled in
- the values make the result
nokandremarksis empty - the day has not come yet and the template has
prevent_early_executionset
mitigation_skipped is only accepted when the occurrence's mitigation_policy is 1 (optional); with any other policy, skipping the corrective action is not a choice the caller has.
completion.result is recalculated from the values in force on every call, while completion.submitted_at keeps the moment the occurrence was first completed.
