UPDATE Employee Task Status

API documentation for starting and finishing employee tasks with status updates and permissions

Overview

This API endpoint allows users to start or finish employee tasks by updating their status. The endpoint is public and requires a minimum role of Employee.

Parameters

ParameterTypeDescriptionRequired
employeeTaskIdStringULID-like string identifier for the employee task✅ Mandatory
statusIntegerTask status: 1 for start, 2 for finish✅ Mandatory

Permissions

Users can start or finish their own tasks within the allowed timeframe, or others' tasks if they have edit permissions over the shift to which the task belongs.

API Endpoints

Start Task

Endpoint: POST {baseUrl}/api/v2/employee-tasks/{employeeTaskId}/activity?access_token={token}

Request Body:

{
  "status": 1
}

Finish Task

Endpoint: POST {baseUrl}/api/v2/employee-tasks/{employeeTaskId}/activity?access_token={token}

Request Body:

{
  "status": 2
}

Response Format

Example Response:

{
    "status": 1,
    "data": {
        "activity": {
            "startedAt": "2025-10-06T09:38:33+00:00",
            "endedAt": "2025-10-07T10:31:47+00:00",
            "startedBy": 2,
            "endedBy": 2,
            "status": 2
        }
    },
    "metadata": [],
    "token": "token",
    "error": null
}

Response Fields

FieldTypeDescription
statusIntegerResponse status code
data.activity.startedAtStringISO 8601 timestamp when task was started
data.activity.endedAtStringISO 8601 timestamp when task was ended
data.activity.startedByIntegerUser ID who started the task
data.activity.endedByIntegerUser ID who ended the task
data.activity.statusIntegerCurrent task status (1 = started, 2 = finished)
metadataArrayAdditional metadata (typically empty)
tokenStringAccess token
errorMixedError information (null if successful)
Language
Credentials
Query
Click Try It! to start a request and see the response here!