Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 651 Bytes

File metadata and controls

35 lines (27 loc) · 651 Bytes

Add label to task

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

Example request:

POST http://localhost:3000/api/task/3/label/2

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "2",
      "name": "TestLabel2",
      "createdAt": "2020-11-22T15:45:20.132Z",
      "updatedAt": "2020-11-22T15:45:20.132Z"
    }
  ]
}