Create#
Create a Task (requires manageTask
permission).
Query#
POST /api/case/{id}task
With:
id
: Case identifier
Request Body Example#
{
"title": "Malware analysis",
"group": "identification",
"description": "Analysis of the file to identify the malware",
"owner": "jerome@strangebee.com",
"status": "InProgress",
"flag": false,
"startDate": 1630683608000,
"endDate": 1630684608000,
"order": 3,
"dueDate": 1630694608000
}
The only required field is title
.
The status
can be Waiting
, InProgress
, Completed
or Cancel
.
Response#
Status codes#
201
: if Tasks is created successfully401
: Authentication error403
: Authorization error
ResponseBody Example#
{
"id": "~4264",
"_id": "~4264",
"createdBy": "jerome@strangebee.com",
"createdAt": 1630684502715,
"_type": "case_task",
"title": "Malware analysis",
"group": "identification",
"description": "Analysis of the file to identify the malware",
"owner": "jerome@strangebee.com",
"status": "InProgress",
"flag": false,
"startDate": 1630683608000,
"endDate": 1630684608000,
"order": 3,
"dueDate": 1630694608000
}
{
"type": "AuthenticationError",
"message": "Authentication failure"
}
{
"type": "AuthorizationError",
"message": "Your are not authorized to create Task, you haven't the permission manageTask"
}
Last update:
October 13, 2023 07:01:35