Skip to content

Update#

Update a Task (requires manageTask permission).

Query#

PATCH /api/case/task/{id}

with:

  • id: id of the task.

Request Body Example#

{
  "title": "Block malware URLs in proxy",
  "group": "containment",
  "description": "Add identified malicious URLs in proxy black list",
  "owner": "[email protected]",
  "status": "Waiting",
  "flag": false,
  "startDate": 1630683608000,
  "endDate": 1630684608000,
  "order": 5,
  "dueDate": 1630694608000
}

No fields are required.

Response#

Status codes#

  • 200: if Task is updated successfully
  • 401: Authentication error
  • 403: Authorization error

ResponseBody Example#

{
  "id": "~4264",
  "_id": "~4264",
  "createdBy": "[email protected]",
  "createdAt": 1630684502715,
  "updatedBy": "[email protected]",
  "updatedAt": 1630685486000,
  "_type": "case_task",
  "title": "Block malware URLs in proxy",
  "group": "containment",
  "description": "Add identified malicious URLs in proxy black list",
  "owner": "[email protected]",
  "status": "Waiting",
  "flag": false,
  "startDate": 1630683608000,
  "endDate": 1630684608000,
  "order": 5,
  "dueDate": 1630694608000
}
{
  "type": "AuthenticationError",
  "message": "Authentication failure"
}
{
  "type": "AuthorizationError",
  "message": "Your are not authorized to update Task, you haven't the permission manageTask"
}

Last update: September 6, 2021 07:39:12