Skip to content

Files

Latest commit

 

History

History
43 lines (34 loc) · 838 Bytes

File metadata and controls

43 lines (34 loc) · 838 Bytes

Remove trackings from task

Description: Remove a list of trackings from a certain task.
URL: /api/task/:taskId/tracking/
Method: DELETE
Data constraints: Provide trackings by their ids.

Example request:

DELETE http://localhost:3000/api/task/1/tracking/

{
  "trackings": ["1", "3"]
}

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "2",
      "description": "This is the 2nd test tracking.",
      "startTime": "2020-11-15T12:00:00.000Z",
      "endTime": null,
      "createdAt": "2020-11-22T15:45:20.150Z",
      "updatedAt": "2020-11-22T16:05:45.000Z"
    }
  ]
}