Skip to main content

DELETE /tasks

Description

Deletes data on a task and returns an empty json object

The route handles the DELETE request made to the /tasks/{id} or /tasks path.

One or multiple tasks can be deleted in one request. All child tasks, if any, are also deleted.

HTTP methodRouteQuery parameter
DELETE/tasksid

Query parameters

The ID of a task that should be removed is sent in the request line.

NameTypeDescription
idnumberOptional. The ID of a task to be removed.

Payload

The server needs to receive a json object with one property:

NameTypeDescription
batcharrayOptional. The list of task IDs to be removed.

Example:

{
"batch": [1, 2, 3]
}

Response

The route returns an empty json object in case of a successful request.

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Change log: The batch payload was added in v1.3

Related articles: