List tasks defined for the work order with current status and metadata.
List tasks defined for the work order with current status and metadata.
access_token OAuth 2.0 Access Token
In: query
Work Order ID
curl -X GET "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/tasks"{
"actions": [],
"metadata": {
"total": 10,
"page": 1,
"pages": 2,
"per_page": 5,
"columns": "id,work_order_id,time_zone,description,descriptions,label,alerts,group,type,created,author,completed,confirm_type,close_out_notes_type,actions,check_in_type,check_out_type,upload_type,custom_field_type,call_phone_type,send_email_type,signature_type,shipment_type,download_type,c19_type",
"view": "model",
"sort": "",
"order": "asc"
},
"params": [],
"results": [
{
"id": 105924,
"work_order_id": 20546,
"description": "Set start time",
"descriptions": {
"task": "Set start time",
"first": "",
"second": "",
"third": "",
"fourth": ""
},
"label": "Set Start Time",
"alerts": [],
"group": {
"label": "Pre visit",
"id": "prep"
},
"type": {
"id": 1,
"key": "confirmassignment",
"name": "Set Start Time"
},
"created": {
"utc": "2020-01-09 22:59:51",
"local": {
"date": "2020-01-09",
"time": "16:59:51"
}
},
"author": {
"id": 1112,
"first_name": "AT SE Skywalker",
"last_name": "Provider 1"
},
"status": "complete",
"completed": {
"utc": "2020-01-10 15:36:13",
"local": {
"date": "2020-01-10",
"time": "09:36:13"
},
"by": {
"id": 1112,
"name": "AT SE Skywalker Provider 1",
"assigned": true
}
},
"eta": {
"user": {
"id": 1112
},
"task": {
"id": 105924
},
"start": {
"local": {
"date": "2020-01-09",
"time": "17:30:00"
},
"utc": "2020-01-09 23:30:00"
},
"end": {
"local": {
"date": "2020-01-09",
"time": "18:30:00"
},
"utc": "2020-01-10 00:30:00.000000"
},
"hour_estimate": 1,
"notes": "",
"status": {
"name": "onmyway",
"updated": {
"utc": "2020-01-10 15:36:13",
"local": {
"date": "2020-01-10",
"time": "09:36:13"
}
}
},
"mode": "exact",
"actions": [],
"correlation_id": "46d6cca348616fc4c46bcb9a2c3e3d8375b7b6db"
},
"actions": [
"incomplete"
]
}
]
}{
"status": 400,
"message": "Validation failed: field 'title' is required"
}{
"status": 500,
"message": "Operation successful."
}{
"status": 403,
"message": "You do not have permission to access this work order"
}{
"status_code": 404,
"message": "Work order not found"
}{
"status": 500,
"message": "An unexpected error occurred. Please try again later or contact support."
}application/json
application/json
application/json
application/json
application/json
application/json
Last updated on