Navigation :
Delete a Task
Deletes a task.
Note: Set ETA, Enter closeout notes, Check in, and Check out are required tasks and can not be deleted.
URLs
Environment |
Method |
URL |
Sandbox |
|
https://api-sandbox.fndev.net/api/rest/v2/workorders/work_order_id/tasks/task_id |
Production |
|
https://api.fieldnation.com/api/rest/v2/workorders/work_order_id/tasks/task_id |
Path Parameters
Parameter |
Type |
Example |
Notes |
work_order_id |
integer
|
1753 |
Work Order ID.
|
task_id |
integer
|
8609 |
Task ID.
|
Query Parameters
Parameter |
Type |
Example |
Notes |
access_token |
string
|
abc123defg459hijk786lmn45 |
Required. |
Response
Returns the Work Order Response. Refer to Work Orders for parameter details and examples.
Errors
Standard HTTP and OAuth error codes.
Examples
403 Forbidden
Required task.
{
"message": "You are not allowed to delete tasks in the current state.",
"trace": [],
"extra": []
}
400 Bad Request
Task does not exist.
{
"status_code": 400,
"message": "(404) Task does not exist"
}