Task Completed
Triggered when a work order task is completed.
Event Parameter
workorder.task_completed{
"company_id": 183,
"user_id": 756,
"url": "https://yourcompany.com/handle_webhook",
"method": "POST",
"secret": "yoursecretHash",
"active": true,
"events": [
"workorder.task_completed"
]
}
Request Body
Includes the Task Object and the Work Order Object. params will vary depending on the task type, and can include Time Logs, Attachments, and other task related objects.
workorder.task_completed
{
"event":{
"name":"workorder.task_completed",
"params":{
"task":{
"id":23504,
"description":"Check in",
"descriptions":{
"task":"Check in",
"first":"",
"second":"",
"third":"",
"fourth":""
},
"label":"Check in",
"alerts":[],
"group":{
"label":"On site",
"id":"onsite"
},
"type":{
"id":3,
"key":"checkin",
"name":"Check in"
},
"created":{
"utc":"2018-12-27 19:04:45",
"local":{
"date":"2018-12-27",
"time":"13:04:45"
}
},
"author":{
"id":557,
"first_name":"Marketplace",
"last_name":"Provider"
},
"status":"complete",
"completed":{
"utc":"2019-01-08 15:52:16",
"local":{
"date":"2019-01-08",
"time":"09:52:16"
},
"by":{
"id":557,
"name":"Marketplace Provider",
"assigned":true
}
},
"time_log":{
"id":312,
"devices":0,
"role":{
"role":"buyer",
"sub_roles":[
]
},
"in":{
"created":{
"utc":"2019-01-08 15:52:14",
"local":{
"date":"2019-01-08",
"time":"09:52:14"
}
},
"coords":{
"latitude":33.5528,
"longitude":-112.256
},
"verified":false,
"distance":1189.360774365411,
"actions":[
],
"requires_verification":false
},
"out":{
"created":{
"utc":"",
"local":{
"date":"",
"time":""
}
},
"coords":{
"latitude":0,
"longitude":0
},
"verified":false,
"distance":0,
"distance_from_in":0,
"actions":[
],
"requires_verification":false
},
"time_zone":{
"offset":0,
"id":4,
"name":"America/Chicago",
"short":"CST"
},
"verified":false,
"was_late":true,
"status":"checked_in",
"hours":0,
"logged_by":{
"id":557,
"first_name":"Marketplace",
"last_name":"Provider",
"created":{
"utc":"2019-01-08 15:52:15",
"local":{
"date":"2019-01-08",
"time":"09:52:15"
}
}
},
"actions":[
"edit"
]
},
"actions":[
"incomplete",
"reorder",
"alerts"
]
},
"_no_model_update":"1"
}
},
"timestamp":"2019-01-08T09:52:16-06:00",
"triggered_by_user":{
"id":557
},
"workorder":{}
}