Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 769 Bytes

File metadata and controls

41 lines (32 loc) · 769 Bytes

Create tracking

Description: Create a new tracking.
URL: /api/tracking/
Method: POST
Data constraints: Provide start time.

Example request:

POST http://localhost:3000/api/tracking

{
  "startTime": "2020-11-15T12:00:00.000Z"
}

Example result:

Status: 201 Created

{
  "data": {
    "description": null,
    "startTime": "2020-11-15T12:00:00.000Z",
    "endTime": null,
    "id": "e982e0c9-a09b-4c3a-847e-8246a0007e69",
    "createdAt": "2020-11-22T15:54:04.504Z",
    "updatedAt": "2020-11-22T15:54:04.504Z"
  }
}