Create

Operation: Create

Creates a time entry for a task.


POST /api/v01/WorkLog/rest/Create
Content-Type: application/json


Request body

FieldTypeRequiredDescription
WorkLogData.TaskKeyFieldstringyesTask leading key name: TaskID, TaskKey, or IntegrationID
WorkLogData.TaskID / TaskKey / TaskIntegrationIDstringper TaskKeyFieldTask key
WorkLogData.WorkLogUserIDstringnoUser to log time for (defaults to the current user)
WorkLogData.WorkLogDateTimeStartStringstringyesStart date-time. Accepted in YYYY-MM-DDTHH:MM:SS or YYYY-MM-DD HH:MM:SS format; normalized to YYYYMMDDHHMMSS
WorkLogData.WorkLogDurationnumberyesDuration in seconds
WorkLogData.WorkLogDescriptionstringnoLog comment


Validation

  • The body must contain WorkLogData.
  • WorkLogData.TaskKeyField must be one of TaskID, TaskKey, IntegrationID.


Response

{
  "status": "Success",
  "statusCode": 200,
  "details": { "WorkLogID": "0000000789" }
}


Example

Log 1 hour 30 minutes against task PROJ-42 for yourself:

POST /api/v01/WorkLog/rest/Create
Content-Type: application/json

{
  "WorkLogData": {
    "TaskKeyField": "TaskKey",
    "TaskKey": "PROJ-42",
    "WorkLogDateTimeStartString": "2026-05-19T10:00:00",
    "WorkLogDuration": 5400,
    "WorkLogDescription": "Defect analysis"
  }
}