Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 763 Bytes

File metadata and controls

37 lines (29 loc) · 763 Bytes

Add tracking to task

Description: Add a single tracking to a certain task.
URL: /api/task/:taskId/tracking/:trackingId
Method: POST
Data constraints: None

Example request:

POST http://localhost:3000/api/task/2/tracking/1

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "1",
      "description": "This is the 1st test tracking.",
      "startTime": "2020-11-15T10:00:00.000Z",
      "endTime": null,
      "createdAt": "2020-11-22T15:45:20.143Z",
      "updatedAt": "2020-11-22T16:03:45.000Z"
    }
  ]
}