Allow deleting several instances / answers with one request
Currently the delete instance and delete answer functionalities only allow to delete a single instance/answer at a time. They could be further improved to accept an array that allows to remove several instances/answers with one request.
Since both instances and answers have two relevant keys the message should probably look like (for deleting answers):
{
"action": "d",
"items": [
{
"instanceId": "...",
"sessionId": "...
}, {
"instanceId": "...",
"sessionId": "...
}, {
"instanceId": "...",
"sessionId": "...
}
]
}
For instances also a simpler version could be available, omitting the typeId
and specifying the "items" as an array of the instanceIds, like so:
{
"action": "d",
"items": [ "...", "...", "..." ]
}