Complete task
Active tasks can be force completed. A completionDetails property must be provided in the body of your request, with the following structure.
| Name | Type | Description |
|---|---|---|
| completionDetails | object | This object let you specify the status of the task and make notes on the completion. |
The available fields within the completionDetails parameter are defined in the below table.
| Name | Type | Description |
|---|---|---|
| success | boolean | Whether the task's completion was successful. |
| notes | string | Optional. Any completion notes for the task. |
curl -X POST "https://onfleet.com/api/v2/tasks/uO2vKr07h6zg7Fzf~2NC3KLg/complete" \
-u "c64f80ba83d7cfce8ae74f51e263ce93:" \
-d '{"completionDetails":{"success":true}}'onfleet.tasks.forceComplete(id="uO2vKr07h6zg7Fzf~2NC3KLg", body={"completionDetails":{"success":True}})onfleet.tasks.forceComplete("uO2vKr07h6zg7Fzf~2NC3KLg", {"completionDetails":{"success":true}});$onfleet->tasks->forceComplete("uO2vKr07h6zg7Fzf~2NC3KLg",["completionDetails"=>["success"=>true]])HTTP/1.1 200 OKCompleted tasks cannot be updated in any way
