Skip to content

Files

Latest commit

 

History

History
47 lines (38 loc) · 858 Bytes

File metadata and controls

47 lines (38 loc) · 858 Bytes

Add labels to task

Description: Add a list of labels to a certain task
URL: /api/task/:taskId/label/
Method: POST
Data constraints: Provide labels by their ids.

Example request:

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

{
  "labels": ["2", "3"]
}

Example result:

Status: 200 OK

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