Create
Operation: Create
Creates a time entry for a task.
POST /api/v01/WorkLog/rest/Create Content-Type: application/json
Request body
| Field | Type | Required | Description |
|---|---|---|---|
WorkLogData.TaskKeyField | string | yes | Task leading key name: TaskID, TaskKey, or IntegrationID |
WorkLogData.TaskID / TaskKey / TaskIntegrationID | string | per TaskKeyField | Task key |
WorkLogData.WorkLogUserID | string | no | User to log time for (defaults to the current user) |
WorkLogData.WorkLogDateTimeStartString | string | yes | Start date-time. Accepted in YYYY-MM-DDTHH:MM:SS or YYYY-MM-DD HH:MM:SS format; normalized to YYYYMMDDHHMMSS |
WorkLogData.WorkLogDuration | number | yes | Duration in seconds |
WorkLogData.WorkLogDescription | string | no | Log comment |
Validation
- The body must contain
WorkLogData. WorkLogData.TaskKeyFieldmust be one ofTaskID,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"
}
}