Scheduling

Add Task Worklog

Add a worklog for the task

post/admin/scheduling/tasks-worklogs

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/scheduling/tasks-worklogs
  • Auth: HTTP basic

Request body

task_idnumber required

ID of the task

user_idnumber required

ID of the user

created_atstring

Datetime of adding. Format: 'YYYY-MM-DD HH:II:SS'. Default value: current datetime

started_atstring

Datetime of starting. Format: 'YYYY-MM-DD HH:II:SS'. Default value: current datetime

stopped_atstring

Datetime of ending. Format: 'YYYY-MM-DD HH:II:SS'. Default value: current datetime

is_manualboolean

Was the log added manually. Default value: false

time_spentnumber required

Time spent in seconds

descriptionstring

Worklogs description

Example request

{
  "task_id": 1,
  "user_id": 1,
  "created_at": "2019-06-18 12:32:59",
  "started_at": "2019-06-18 12:32:59",
  "stopped_at": "2019-06-18 12:32:59",
  "time_spent": 900,
  "description": "Worklogs description"
}

Response

idnumber required

Tasks worklog ID

Example response

{
  "id": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.