Deleting tasks
This endpoint deletes a specific task.
HTTP Request
DELETE https://api.lunatask.app/v1/tasks/<id>
URL Parameters
Parameter | Description |
---|---|
id | The ID of the task to delete |
Example in Ruby
require 'rest-client'
access_token = 'xxx'
RestClient.delete('https://api.lunatask.app/v1/tasks/066b5835-184f-4fd9-be60-7d735aa94708', { Authorization: "bearer #{access_token}" })
Response
The above command returns JSON structured like this:
{
"task": {
"id": "066b5835-184f-4fd9-be60-7d735aa94708",
"area_id": "11b37775-5a34-41bb-b109-f0e5a6084799",
"goal_id": null,
"status": "later",
"previous_status": null,
"estimate": null,
"priority": 0,
"progress": null,
"motivation": "unknown",
"eisenhower": 0,
"sources": [],
"scheduled_on": null,
"completed_at": null,
"created_at": "2021-01-10T10:39:25Z",
"updated_at": "2021-01-10T12:52:04Z",
"deleted_at": "2021-01-10T12:52:04Z"
}
}