curl --request POST \
--url 'https://api.stateset.com/api/v1/work-orders/tasks/{task_id}/complete' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"actual_hours": null
}'
{
"actual_hours": null,
"estimated_hours": null,
"id": "string",
"notes": null,
"sequence": 1,
"status": "string",
"task_name": "string",
"work_order_id": "string"
}
Complete a task
Complete a task
POST
/
api
/
v1
/
work-orders
/
tasks
/
{task_id}
/
complete
curl --request POST \
--url 'https://api.stateset.com/api/v1/work-orders/tasks/{task_id}/complete' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"actual_hours": null
}'
{
"actual_hours": null,
"estimated_hours": null,
"id": "string",
"notes": null,
"sequence": 1,
"status": "string",
"task_name": "string",
"work_order_id": "string"
}
Path parameters
string
required
Work order task ID
Request body
CompleteWorkOrderTaskRequest
string,null
Decimal actual hours as a string.
Responses
WorkOrderTaskResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/work-orders/tasks/{task_id}/complete' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"actual_hours": null
}'
{
"actual_hours": null,
"estimated_hours": null,
"id": "string",
"notes": null,
"sequence": 1,
"status": "string",
"task_name": "string",
"work_order_id": "string"
}
⌘I