Skip to content

Files

Latest commit

 

History

History
41 lines (32 loc) · 722 Bytes

File metadata and controls

41 lines (32 loc) · 722 Bytes

Remove labels from task

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

Example request:

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

{
  "labels": ["1", "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"
    }
  ]
}